DEV Community

Arshad Ali
Arshad Ali

Posted on

JAVA- For Loop

    public class Main {

        public static void main(String[] args) {


            for(int i=0; i<=10; i++) {
                System.out.println(i);
            }

            System.out.println("Happy New Year!");
    }

}






Enter fullscreen mode Exit fullscreen mode

Top comments (0)