Sum of Odd Numbers
Time limit1sMemory limit128 MB
Sum all odd integers from 1 to the given odd N for each test case.
- Level
Easy1 of 10
- Topics
- Math
- Solved
- No attempts yet
Problem
You are given an odd integer . Compute the sum of every odd integer from to , including itself.
Input
The first line contains , the number of test cases. Each test case consists of one integer . is between and .
Output
For each test case, print the value of on its own line.