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 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
include int main int num1 num2 double sum 0 int count 0 Ask the user to enter two numbers ... View full answer
Get step-by-step solutions from verified subject matter experts
