Question: Write a C++ program to read 4 numbers entered by user in the terminal (use cin). Then, take the average of these numbers and
Write a C++ program to read 4 numbers entered by user in the terminal (use cin). Then, take the average of these numbers and report: Average of number1, number2, number3 and number 4 is .... (use cout). Use following two sets of 4 numbers to test your program: set 1) 12, 40, -50, 55 set 2) 9, 22, -10, -2
Step by Step Solution
3.45 Rating (161 Votes )
There are 3 Steps involved in it
include iostream using namespace std int main Variables to sto... View full answer
Get step-by-step solutions from verified subject matter experts
