0

Write a program that implements a game, to teach arithmetic to little children. The

program tests addition and subtraction. In level 1 it tests only addition of numbers less

than 10 whose sum is less than 10. In level 2 it tests addition of arbitrary one-digit

numbers. In level 3 it tests subtraction of one-digit numbers with a nonnegative

difference. Generate random problems and get the player input. The player gets up to two

tries per problem.