c++ program to find sum of array element



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

Program:-



Output:-


Enter 5 element of array
41
24
11
94
49
Sum of array is 219


Enter 5 element of array
01
40
50
70
90
Sum of array is 251

Program:-

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




Output:-

Enter element number in array
5
Enter 5 element of array
1
2
3
4
5
Sum of array is 15

Enter element number in array
4
Enter 4 element of array
14
44
84
24
Sum of array is 166

Leave reply

Add your comments here

Back to Top