Nested selection structures

(Display Listing 3.)

The program uses three nested selection structures:

  1. Thanks for the 1.
  2. Thanks for the 2.
  3. Thanks for the 3.
  4. User input error.

The choice of message to display depends on the value stored in the variable named userInputValue.