How to do sentinel logic
Here is the pattern: (note this is NOT code!)
input statement (inputting into a variable x)
while x is not the sentinel value
process x as needed
input statement (inputting into a variable x)
(yes, this is the same statement as the one outside of the loop!)
Summary