Ad Code

Responsive Advertisement

Uri - Beecrowd | 1059 | Even Numbers

beecrowd | 1059

Even Numbers

Adapted by Neilor Tonin, URI Brazil


Write a program that prints all even numbers between 1 and 100, including them if it is the case.

Input

In this extremely simple problem there is no input.

Output

Print all even numbers between 1 and 100, including them, one by row.

Input Sample Output Sample

2
4
6
...
100

N.B.: It's better if you solve this by your own. Thank you!


  URI - BEECROWD Online Judge 1059 Solve  in C :                                          

//Solved by Intesar
#include <stdio.h>

int main() {

    int i;

    for(i=1;i<=100;i++)
    {
        if(i%2==0)
            printf("%d\n",i);
    }

    return 0;
}

Post a Comment

0 Comments

Ad Code

Responsive Advertisement