DEV Community

loading...

How i solve this [closed]

osamasameh
・1 min read

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

Discussion (0)