The while loop (cont'd)
(Display Listing 2.)
After the user enters another integer value and it is tested to produce and store a Boolean value,
Control goes back to the top of the loop where the value of testResult is tested for true or false again.
If the value of testResult is still true:
The code in the body of the loop is executed one more time.
This looping process continues until the value of testResult becomes false.
When the value of testResult becomes false:
The body of the loop is skipped, and the loop structure terminates.