Ask the user to enter an integer
The program in Listing 13 asks the user to enter an integer between 1 and 3.
Then the program displays a message related to the value of the integer.
An error message is displayed if the integer is not one of the specified values.