what happens when the condition is false in do....while loop
Answers
Answered by
5
Answer:
Hey there !!!
I am here to help you
Explanation:
If condition is false then,
This means that the code must always be executed first and then the expression or test condition is evaluated. If it is true, the code executes the body of the loop again. ... If the expression is false, the loop terminates and control transfers to the statement following the do-while loop.
Answered by
4
while loop is executed once before the condition is checked. Its syntax is: do { // body of loop; } while (condition); ... If the condition evaluates to true , the body of the loop inside the do statement is executed again.
Similar questions