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

Submissions: 1953 Accuracy:

23.71%

Sum of odd and even elements
     

Given an integer N, you have to print the sum of odd numbers and even numbers form 1 to N

Input:
First line consists of T test cases. First line of every test case consists of a Single integer N.

Output:
Single line output, with sum of odd numbers and even numbers respectively.

Constraints:
1<=T<=100
1<=N<=10^5

Example:
Input:

2
5
6
Output:
9 6
9 12

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

Contributor: PVash

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.