The end of the program

Listing 5 signals the end of the program. 

When the user presses any key: