Java do while example program

Java do while example program


public class WhileDemo{
public static void main(String[] args){
int i = 0;
do {
System.out.println(i);
i++;
} while (i < 6);
}
}


output

-->