When the conditional clause returns false...
(Display Listing 2.)
When the upper limit of 5 has been reached:
- The conditional clause returns
false
- The body of the loop is skipped
- A single statement following the for loop is executed producing the
screen output shown in Figure 5
Figure 5. End of run for program named
Alice0174b.