✪ Choose the correct option.
What will be the output of the program?
int i = 1, j = 10;
do {
if(i > j) {
break;
}
j--;
}
while (++i < 5);
System.out.println("i = " + i + " and j = " + j);
What will be the output of the program?
What will be the output of the program?
int i = 1, j = 10;
do {
if(i > j) {
break;
}
j--;
}
while (++i < 5);
System.out.println("i = " + i + " and j = " + j);