Sum of N numbers

Sum of N numbers. Given an integer N followed by N integers, read these integers and print their sum. The first line of input contains the integer N, which indicates how many integers will follow. Each of the next N lines contains one integer. Calculate and print the sum of these N integers.

Test Case Input (N and numbers) Expected Output
1 5
1
2
3
4
5
15
2 3
10
20
30
60
3 4
5
5
5
5
20