C program to find sum of n numbers

C program to find sum of n numbers


Input:

Enter the number of elements:
5
Enter 5 numbers:
1 2 3 4 5

Output:

The sum is 15

Implementation: