Monday 24 July 2017

Print infinite stars * using DO-While Loop

public class DoWhile {
public static void main(String[] args) {
    do{
   
        System.out.println("*");
    }while(true);
}
}



OUTPUT:
*
*
*
*
*
and so on.....

No comments:

Post a Comment