The doSomething function

All of the interesting code is contained in an instance function of the Operators01 class named doSomething.

The doSomething function begins in Listing 1.

The code in Listing 1 does the following in preparation for the later use of a loop structure: