Sentinel while loop

(Display Listing 7.)

Program Alice0175f  is commonly referred to as a sentinel loop.

I explained the general rationale for a sentinel loop and the rationale for this program in particular earlier.

A sentinel loop is a loop that continues looping until some value (the sentinel) matches a predefined value.