The final screen output
(Display Listing 1.)
The code following the body of the loop produces the screen output shown in Figure 3.
The number of penguins showing will depend on the value entered by the user in Figure 1.
Figure 3. End of run for program named Alice0174a.