c++ program to find average of array element

c++ Program to find average of 5 element of array

Program:-


Output:-


Enter 5 element of array
1
4
25
17
18
Average of array is 13.0

Enter 5 element of array
11
24
54
91
72
Average of array is 50.4





c++ Program to find average of N element of array




Output:-



Enter element number in array
5
Enter 5 elemet of array
14
54
49
87
12
Average of array is 54

Enter element number in array
7
Enter 7 elemet of array
41
54
94
78
21
19
62
Average of array is 61.5


Leave reply

Add your comments here

Back to Top