Question: Write c++ program that reads integers from the user until the user enters a Sentinel. Use a Sentinel of -999. Ignore all negative numbers (do

Write c++ program that reads integers from the user until the user enters a Sentinel. Use a Sentinel of -999. Ignore all negative numbers (do not include negative numbers in the totals) from the user input. you need to Output the sum of all even numbers and Output the sum of all odd numbers and Output the count of all even numbers and Output the count of all odd numbers. no arr. try to make it simple.

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!