While loops and for loops: Correct Solution


Part 1

Translate the following for loop into a while loop:

for (long te = po; te <= jiVeng; te++) {
    giflas(te, 44);
}

Solution

long te = po;
while (te <= jiVeng) {
    te++;
    giflas(te, 44);
}

Related puzzles: