Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

More Books

Students also viewed these Databases questions

Question

Provide examples of KPIs in Human Capital Management.

Answered: 1 week ago

Question

What are OLAP Cubes?

Answered: 1 week ago