Sum and average all of the odd and even numbers entered by the user.

First ask the user how many numbers will be entered (whole numbers)

 

In a loop, ask for the required number of numbers, add up the sum of all

the odds and all the evens.

 


Concatenate all of the odd numbers into a string separated by spaces

 

Concatenate all of the odd numbers into a string separated by spaces

 

Print out all the odd numbers, their sum and their average (including any decimal part)

 

Print out all the even numbers, their sum and their average (including any decimal part)

 

===========
When the program runs it should look like this:

How many numbers will you enter? 3
Enter number 1: 20
Enter number 2: 25
Enter number 3: 44

The odd numbers are 25
The total of the odd numbers is 25, the average is 25

The even numbers are 20 44
The total of the even numbers is 64, the average is 32