Question: Use the Do while Loop Write a C++ program that reads10 integers and then finds and prints the sum of the even and odd integers

Use the Do while Loop

Write a C++ program that reads10 integers and then finds and prints the sum of the even and odd integers

***Don't let the user count 10 numbers. Your program should collect only 10 numbers; stop collecting after 10 numbers automatically.

***You assume that the user types only an integer number.

***Use main() function only; no user-defined functions.

***No object-oriented programming.

***Match the output below (output might be different depending on the while loop you are using).

OUTPUT:

Please enter 10 integers: 1 2 3 4 5 6 7 8 9 10

Even sum: 25 Odd sum: 30

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!