C++ program to find average of 5 numbers

Write a C++ program to find the average of 5 numbers.

Output

Enter five numbers: 4
5
6
7
8
Average = 6

 

Write a C++ code to find the average of 5 numbers using for loop and array.

Output

Enter five numbers: 9
8
7
66
5
Sum = 95
Average = 19

C++ program to find the average of 10 numbers