eolymp
bolt
Try our new interface for solving problems
Problems

Sum of Odd Sequence

Sum of Odd Sequence

Given an odd integer \textbf{N}, calculate the sum of all the odd integers between \textbf{1} and \textbf{N} inclusive. \InputFile First line of the input contains \textbf{T}, the number of test cases. Each test case contains a single integer \textbf{N}. \textbf{N} is between \textbf{1 }and \textbf{100}. \OutputFile For each test case output the value \textbf{1+3+….+N}.
Time limit 1 second
Memory limit 64 MiB
Input example #1
10
1
3
5
7
9
11
13
15
17
19
Output example #1
1
4
9
16
25
36
49
64
81
100
Source ACM-ICPC Malaysia al-Khawārizmī Programming Contest 2011