Question: What do these loops print? a. int i = 0; int j = 10; while (i < j) { System.out.println(i + + j);
What do these loops print?
a. int i = 0; int j = 10;
while (i < j) { System.out.println(i + " " + j); i++; j--; }
b. int i = 0; int j = 10;
while (i < j) { System.out.println(i + j); i++; j++; }
Step by Step Solution
3.33 Rating (156 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
