Behavior upon reading the sentinel value

When the user enters a value of -1, the conditional expression in the first line in Listing 4 will evaluate to false.

The body of the loop will be skipped and the loop will terminate causing control to pass from the loop structure in Listing 4 to the code in Listing 5.