Question: do while loop java example?
Answer: public class DoWhileExample {
public static void main(String[] args) {
int i=1;
do{
System. out. println(i);
i++;
}while(i<=10);
}