Easy10 pts
Simple Array Sum
Given an array of integers, find the sum of its elements. First line: n. Second line: n space-separated integers.
Input
Line 1: n. Line 2: n space-separated integers.
Output
The sum as a single integer.
Sample
6 1 2 3 4 10 11
Expected
31
Loading editor…
Output
No output yet. Run your code to see results.