Question: Write a C++ program that will calculate the average of four numbers that are stored in variables. The variables are all of the data type:
Write a C++ program that will calculate the average of four numbers that are stored in variables. The variables are all of the data type: double. The values that are stored are 578, 986, 1866, and 714 Display a message showing the sum of all four numbers (ex. The sum of those numbers is") On the next line, display the average of all four numbers (ex. -"The average of those numbers is .")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
