The short answer: no.
By definition a sentinel is some value in the range of the datatype being used which does not represent a valid data value. So when you're determining if a sentinel is even...
Type: Posts; User: Tclausex
The short answer: no.
By definition a sentinel is some value in the range of the datatype being used which does not represent a valid data value. So when you're determining if a sentinel is even...
You are reading in the number, processing it, then returning to the top of the while loop to test the input. So yes, 0 is being treated as an input.
The easiest solution at a beginning level...