Given an integer array A of size N, find sum of elements in it.
First line contains an integer denoting the test cases 'T'. T testcases follow. Each testcase contains two lines of input. First line contains N the size of the array A. The second line contains the elements of the array.
For each testcase, print the sum of all elements of the array in separate line.
1 <= T <= 100
1 <= N <= 100
1 <= Ai <= 100
3 2 1
1 2 3 4
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.