public class TheLoop { public static void main(String...args) { int i = 1; do while(i < 1) System.out.println("i = " + ++i); while (i > 1); } }
do { while (i < 1) { // false when i = 1 System.out.println("i = " + ++i); } } while (i > 1); // false when i = 1
Login in to like
Login in to comment
or Read more about Java Quizzes
Login in to like
Login in to comment