- Write a program that asks the user to enter five integers and then adds and outputs the sum of odd integers, and adds and outputs the sum of even integers. For example, if the user enters the integers 7, 4, 2, 1, and 3 then the program should output the following message:
Enter five integers: 7 4 2 1 3
The sum of the odd integers you entered is: 11
The sum of the even integers you entered is: 6