Addition
Time limit1sMemory limit128 MB
Add up N small natural numbers for each test case and print each sum on its own line.
- Level
Easy1 of 10
- Topics
- Implementation
- Solved
- No attempts yet
Problem
You are given natural numbers, each at most 10. Write a program that computes their sum.
Input
The first line contains the number of test cases (). Each test case takes two lines. The first line contains the amount of natural numbers (), and the second line contains the natural numbers separated by single spaces. Every natural number is at most 10.
Output
For each test case, print the sum of the given natural numbers on a line of its own.