The program named Alice0165b
(Display Figure 8.)
This program illustrates the use of a loop structure as one of the elements in a sequence structure.
The user is asked to enter an integer. If the user enters an even integer:
The program displays the image shown in Figure 8 for two seconds, and asks the user to enter another integer.
The process of displaying the image shown in Figure 8 and asking the user to enter another integer continues for as long as (while) the user continues entering even integer values.
Figure 8. Program output for even input to program name Alice0165b.