Using do LoopsDo loops and while loops are closely related . Do loops, like while loops, also execute statements a number of times. However, a do loop always executes once regardless of whether the expression to test is true or false. To write a do loop:
|