Quote:
Originally Posted by Googi
News to me, but how is it different from a normal while loop?
|
Condition execution.
In a while loop, the condition is executed first, and the loop running depends upon the condition being true before each loop.
In a do ... while loop, the condition is checked after the loop is executed, and the loop will always run once before that condition is checked.