Print all the numbers from 1 to 10 using for 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) {

        for (int i=1; i<=10; i++){

            System.out.println(i);

        }

    }

}

Post a Comment

0Comments
Post a Comment (0)