While Do Loop Problem

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 b = 10;

        do {

            System.out.println(b);

            b++;

        }while(b<5);


        int c = 1;

        do{

            System.out.println(c);

            c++;

        }while(c<=45);

    }

}

Post a Comment

0Comments
Post a Comment (0)