Print all the numbers from 100 to 200 using while loop

Suman Barik
0

 // Online Java Compiler

// Use this editor to write, compile and run your Java code online


public class HelloWorld {

    public static void main(String[] args) {

        int i = 100;

        while(i<=200){

             System.out.println(i);  

             i++;  

             }  

    }

}

Post a Comment

0Comments
Post a Comment (0)