The loop structure in code
The next program named Structures03 illustrates sequence, selection, and loop structures all in a single program.
The program executes a loop structure as one of the action elements in a sequence structure.
The loop structure executes a selection structure as one of the action elements during each iteration of the loop.