The selection structure
The selection or decision structure can be described as shown in the pseudocode in Figure 2.
Figure 2. The selection structure in pseudocode.
Enter
Test a condition for true or false
On true
Take one or more actions in sequence
On false
Take none, one, or more actions in sequence
Exit
|