Write a program that keeps prompting the user to enter positive integers. The user signals that he or she is done by entering a negative number like -1. The program then prints out how many numbers were entered, their sum and average. If the user does not enter any number, [i.e. the first number the user enters is -1], then your program should not do a division by zero to obtain the average.
Write a program that prompts the user to enter a positive number. If the number is not positive keep prompting until the user enters a positive number. Then reverse that number and print it out. Your session would like this: Enter a number: 7295 Reverse number: 5927