Muhaiminur
2/12/2018 - 5:57 PM

Prints The First 100 Even Positive Integers.

Write a java program that prints the first 100 even positive integers.

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package BASICJAVA;

import java.util.Scanner;

/**
 *
 * @author ABIR
 */
public class Prints_The_First_100_Even_Positive_Integers {
    public static void main(String[]args){
        Scanner abir =new Scanner(System.in);
        for (int i = 1; i < 200; i++) {
            if(i%2==0){
                System.out.println("Even number is "+i);
            }
        }
        
    }
}