BETA
School Problem's Submission isn't counted in score!

Total Submissions: 3761 Accuracy:

47.97%

Sum of array elements
     

Given an integer array, find sum of elements in it.

Input:

First line contains an integer denoting the test cases 'T'. Every test case contains an integer value depicting size of array 'N' and N integer elements are to be inserted in the next line with spaces between them.

Output:

Print the sum of all elements of the array in separate line.

Constraints:

1 <= T <= 100

1 <= N<= 100

1 <= Arr[i] <= 100

Example:

Input:
2
3
3 2 1
4
1 2 3 4

Output:
6
10

** For More Input/Output Examples Use 'Expected Output' option **

Set Default Code

					   
It is recommended to 'Compile & Test' your code before clicking 'Submit'!

Compilation/Execution Result:

Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.