chapter  7
14 Pages

Repetition

There are three general forms of the repetition structure: the while loop, the repeat-until loop, and the for loop. The first form of the repetition structure, the while construct, is the most flexible. The other two forms of the repetition structure can be expressed with the while construct.