I have a pretty straight forward question. In the program below, why does i not increment to 1 in the first iteration of the for loop? My compiler shows that for the first run, j is not less than i because they are both 0. Thanks!
int i;
for (i = 0; i < 5; i++) {
int j = 0;
while (j < i) {
System.out.print(j + " ");
j++;
ibe incremented during the first iteration? The only time you haveibeing incremented is at the end of the first iteration.i=0as specified in inital condition of for loop.