The loop structure
The loop or iteration structure can be described as shown in the pseudocode in Figure 3.
Figure 3. The loop structure in pseudocode.
Enter
Test a condition for true or false
Exit on false
On true
Perform one or more actions in sequence.
Go back and test the condition again
|
As before, there is only one entry point and one exit point.