Converted problem1.c, problem2.c, and problem3.c to Ada