Sum of Even Numbers till N

Level EASY

Given a number N, print sum of all even numbers from 1 to N.

Input Format :
Integer N
Output Format :
Required Sum 
Sample Input 1 :
 6
Sample Output 1 :
12

Comments

Popular posts from this blog

Access and modify all the resources of our Wiki.js using WikiJS API

How to pass parameters in webhook?

MySQL Multi Source Master Slave Replication using GTID