Create a function named sumar.
The function must receive an integer array and its size. It must return the sum of all elements in the array.
int sumar(int a[], int n)
The first number indicates the number of elements in the array.
Then the array elements are entered.
The sum of the array elements.
Input:
4 5 10 15 20
Output:
50