Ask your own question, for FREE!
Computer Science 16 Online
OpenStudy (anonymous):

what happens in while-loop if the resulting value of the condition is true?

OpenStudy (anonymous):

if condition is true the code inside the loop is executed again and again till then the the is not becomes false or break statement is not executed

OpenStudy (anonymous):

I will give you some examples: Python- while True: ##Do stuff that example will occur forever until you say 'break' x=5 while x > 0: x = x - 1 That will end once 'x' variable reaches 0. There are many similar examples for different programming languages.

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!