getint and getfloat for exercises to 5-2.