Given an array of N integers, can you find the sum of its elements?
The first line contains an integer, N, denoting the size of the array. The second line N contains space-separated integers representing the array's elements.
Print the sum of the array's elements as a single integer.
6
1 2 3 4 10 11
31
We print the sum of the array's elements, which is:
1 + 2 + 3 + 4 + 10 + 11 = 31.