do...while loop | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson

do...while loop

It is said that the do...while loop is guaranteed to execute at least one time.What if condition is false??

15th Jan 2017, 6:06 PM
Vishal Kumar
Vishal Kumar - avatar
2 Answers
+ 13
It executes first time, and then looks at the condition. So condition checking is done after first execution
15th Jan 2017, 6:11 PM
Filip - avatar
it is exit check loop it checkS condition after inside stetements
19th Jan 2017, 3:09 AM
Joe Edwin J
Joe Edwin J - avatar