You are on page 1of 9

1.

2.

3.
4.

5.

6. Thedifference lies in the place where the condition is tested.


The while loop tests the condition before executing any of the
statements within the while loop whereas the do-while loop tests
the condition after the statements have been executed within the
loop.

7.

8.

9.
10.
11.
12.
13.
14.

You might also like