EasyRating 800
Sum of Even Numbers
Print the sum of all even numbers from 1 to n.
Input
One integer n (1 ≤ n ≤ 10⁹).
Output
The sum.
Sample 1
Input
10
Output
30
Sample 2
Input
1
Output
0
Output appears hereOne integer n (1 ≤ n ≤ 10⁹).
The sum.
10
30
1
0
Output appears here