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
Get step-by-step solutions from verified subject matter experts
