What will be the output of this nested do-while loop in Java?
int i = 1;
do {
int j = 1;
do {
System.out.println(i + " " + j);
j++;
} while (j <= 2);
i++;
} while (i <= 2);
What will be the output of this nested do-while loop in Java?
int i = 1;
do {
int j = 1;
do {
System.out.println(i + " " + j);
j++;
} while (j <= 2);
i++;
} while (i <= 2);