Code in the main method
(Display Listing 2.)
The code in the main method consists of the following sequence of
actions:
- A priming read.
- A while loop.
- A doTogether block that is executed when the user enters an odd
integer causing the loop to terminate.