4. Sum of an array
- Points
- 20
- Type
- ConsoleIO
The first line contains a number
n. The second line contains n integers separated by spaces. Print their sum.Examples
| Input | Output |
|---|---|
3
1 2 3 |
6
|
5
10 10 10 10 10 |
50
|
1
-7 |
hidden |
Your code is saved locally until you submit a solution.