#C3717. Array Sum
Array Sum
Array Sum
You are given an array of integers. Your task is to compute and output the sum of all elements in the array.
The input starts with an integer \(n\) that denotes the number of elements in the array. This is followed by \(n\) integers. The answer is the sum, \(S\), where \(S = \sum_{i=1}^{n} a_i\).
inputFormat
The first line of input contains a single integer \(n\) indicating the number of elements in the array. The second line contains \(n\) space-separated integers representing the array elements.
outputFormat
Output a single integer representing the sum of the \(n\) elements.
## sample5
1 2 3 4 5
15