DEV Community

osamasameh
osamasameh

Posted on

How i solve this [closed]

How i solve this

-3

the task is to calculate the summation of the even numbers from 1 to N.

Input there is only one line contains an Integer N (1 <  = N <  =  10(power 9)).

Output the answer to the problem.

Examples

inputCopy 6 outputCopy 12

inputCopy 3 outputCopy 2

Top comments (0)