Problem Statement
Write a C program to compute the sum of all elements in a 1D array. The program should first read the number of elements n, then read n integers into an array, and finally compute and print the total sum.
Example
Input:
5 1 2 3 4 5
Output:
15