+ 2

How is a do while loop different from a while loop?

1)A do while loop tests the condition before running the code. 2)A while loop runs the code before testing the condition. 3)A do while loop runs your code at least one time.

7th Apr 2018, 6:43 AM
Mian Anwar Khan
Mian Anwar Khan - avatar
2 odpowiedzi
+ 2
Do while loop is exit-controlled. While loop is entry-controlled.
7th Apr 2018, 6:48 AM
Aaron Stone
Aaron Stone - avatar