Question
Must Use the DO WHILE Loop Write a C++ program that reads10 integers and then finds and prints the sum of the even and odd
Must 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started