Why is the output of the following for loop 2 2 2?
for (int i = 0, j = 2; i < 3; i++, j--) {
System.out.print(i + j + " "); // why is this 2 2 2 ?
}
Why is the output of the following for loop 2 2 2?
for (int i = 0, j = 2; i < 3; i++, j--) {
System.out.print(i + j + " "); // why is this 2 2 2 ?
}