Got Homework?
Connect with other students for help. It's a free community.
Here's the question you clicked on:
 0 viewing
How many times does the computer print the string "Good bye"?
i = 2
while (i < 7) {
print ("Good bye")
i = i + 1}
 2 years ago
 2 years ago
How many times does the computer print the string "Good bye"? i = 2 while (i < 7) { print ("Good bye") i = i + 1}
 2 years ago
 2 years ago

This Question is Closed

SBest ResponseYou've already chosen the best response.3
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
 2 years ago

camelialawsonBest ResponseYou've already chosen the best response.0
It make sense but you are not sure?
 2 years ago

SBest ResponseYou've already chosen the best response.3
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 )
 2 years ago

ChlorophyllBest ResponseYou've already chosen the best response.1
of course, 5 times!
 2 years ago
See more questions >>>
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.