Question:
What is the fundamental difference between the do loop and the while loop?
Thanks :)
Question:
What is the fundamental difference between the do loop and the while loop?
Thanks :)
A do loop tests the condition after executing it the body initially. A while loop tests the condition before entering.
So with a do-while loop, you're always guaranteed to execute the body of the loop at least once.Quote:
Originally Posted by Tonto
Thank you :) That clears it up for me :)