Exercise 5-1 As written, getint treats a + or - not followed by a digit as a valid representation of zero. Fix it to push such a character back on the input.