~/algor $ cat problems/toq-sonlar-yigindisi
Sum of odd numbers
Easy
1000 ms
64 MB
24%
A positive integer $N$ is given. Compute the sum of all odd numbers from $1$ to $N$:
$$S = 1 + 3 + 5 + \dots$$
Input
One positive integer $N$.
Output
One integer — the sum of the odd numbers.
Note
$1 \le N \le 10^{5}$
Examples
Input #1
5
Output #1
9
Input #2
10
Output #2
25