The doSelection function
The doSelection function begins in Listing 3.
This function executes a sequence structure consisting of three action elements followed by a selection structure.
The three elements in the sequence structure are shown in Listing 3.
The purpose of this sequence structure is to get and save an integer input value from the user.
The code in Listing 3 produces the third line of output text shown under program output earlier.