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

MySQL Multi Source Master Slave Replication using GTID

Setting Up PostgreSQL Database Logical Replication with Docker Compose

Regex 101: An Introduction to Regular Expressions for Developers