Question: Write a complete C++ program that keeps reading numbers of type integer until two equal consecutive numbers are entered. At the end print the

Write a complete C++ program that keeps reading numbers of type integer until two equal consecutive numbers 

Write a complete C++ program that keeps reading numbers of type integer until two equal consecutive numbers are entered. At the end print the average of all even and odd entered numbers, and the count of negative numbers. Assume that at least two numbers will be entered. Example: input-9-174-4563 3.

Step by Step Solution

3.42 Rating (149 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Below is a simple C program that meets your requirements It reads integers until two consecutive equ... View full answer

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 Programming Questions!