The sum of N numbers

Report a typo

Write a program that calculates the sum of N numbers.


The first line contains the number N.

The other lines contain N numbers.


Output the sum of N numbers.

Sample Input 1:

3
1
2
3

Sample Output 1:

6
Write a program in Kotlin
fun main() {
// write your code here
}
___

Create a free account to access the full topic