Question: Using loops, write a C++ program that asks the user to enter two numbers, and then prints the average of all numbers between the

Using loops, write a C++ program that asks the user to enter two numbers, and then prints the average of all

Using loops, write a C++ program that asks the user to enter two numbers, and then prints the average of all numbers between the entered numbers, excluding the two numbers. Example: If the user enters numbers 5 and 10, the average should be displayed as (6+7+8+9)/4.

Step by Step Solution

3.42 Rating (149 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

include int main int num1 num2 double sum 0 int count 0 Ask the user to enter two numbers ... 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!