Sum of Array
Submissions: 6556   Accuracy:

57.65%

  Difficulty: School   Marks: 0
*School Problem's Submission isn't counted in score!
     

Given an integer array find sum of it.

Input:
First line contains an integer, the number of test cases 'T' Each test case should contain an integer, size of array 'N' in the first line. In the second line Input the integer elements of the array in a single line separated by space.


Output:
Print the sum in seperate line.


Constraints:

1 <= T <= 30

1 <= N <= 100

1 <= Arr[i] <= 100

 

Example:

Input
1
4
1 2 3 4

Output:
10

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

Author: abhiraj26


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

to report an issue on this page.