Write a program to find the sum of the given series 1+2+3+ . . . . . .(N terms)
The first line of input contains an integer, the number of test cases T. Each test case should contain a positive integer N.
Print the sum in a separate line.
1 <= T <= 30
1 <= N <= 100
Testcase 2: For n=5 , sum will be 1+2+3+4+5=15.
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.