Ask your own question, for FREE!
Mathematics 19 Online
OpenStudy (anonymous):

How many times does the computer print the string "Good bye"? i = 2 while (i < 7) { print ("Good bye") i = i + 1}

OpenStudy (s):

5 times i think =\

OpenStudy (s):

It starts of with a 2.. 2<7.. then it goes into i = i+1 and becomes a 3 which is also less then 7.. then 4, 5, and 6 that are also less then 7, and i guess it stops when i reaches 7 cause its not less then 7.. So in conclusion we used 2, 3, 4, 5, 6 - 5 numbers in total.. so it prints 5 times.. i guess O_o

OpenStudy (anonymous):

It make sense but you are not sure?

OpenStudy (s):

I'm 90% sure.. cause that looks like something i did in matlab.. but that was a while ago.. so i don't want to guarantee anything you know )

OpenStudy (anonymous):

five for sure.

OpenStudy (s):

Thanks =D

OpenStudy (anonymous):

of course, 5 times!

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!