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.
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
3Sample Output 1:
6Create a free account to access the full topic