Easy10 pts
A Very Big Sum
Calculate and print the sum of the elements in an array. Numbers may be large (use 64-bit).
Input
Line 1: n. Line 2: n space-separated long integers.
Output
The sum.
Sample
5 1000000001 1000000002 1000000003 1000000004 1000000005
Expected
5000000015
Loading editor…
Output
No output yet. Run your code to see results.