While loops and for loops: Correct Solution


Part 1

Translate the following for loop into a while loop:

for (long esti = e; esti < gipha; esti--) {
    adee(esti, 31);
}

Solution

long esti = e;
while (esti < gipha) {
    esti--;
    adee(esti, 31);
}

Related puzzles: