While loops and for loops: Correct Solution


Part 1

Translate the following for loop into a while loop:

for (int u = 46; u >= moad; u /= 4) {
    ooss(u, 35);
}

Solution

int u = 46;
while (u >= moad) {
    u /= 4;
    ooss(u, 35);
}

Related puzzles: