C program to add the elements of an array

C program to add the elements of an array

Output:

Enter the size / number of elements in array:
5
Enter the elements of the array:
1 2 3 4 5
The sum of the array is 15

Implementation: