0

Using Do While Loops

Why is there a key difference between a while loop and a do while loop?

20th Dec 2020, 10:37 PM
Joshua Parker
Joshua Parker - avatar
2 Respostas
+ 2
In a do...while loop...any statements in it will be evaluated at least once.
21st Dec 2020, 12:11 AM
rodwynnejones
rodwynnejones - avatar
+ 1
Also because in while-loop we check the loop condition first, contrary to the do-while loop where we check loop condition later.
21st Dec 2020, 12:15 AM
Ipang