While loops and for loops: Correct Solution


Part 1

Translate the following natural language description of a loop into a for loop:

Declare a variable named galo of type long, initialized to diwn. Then, until galo is greater than or equal to goTir, decrement galo.

Solution

for (long galo = diwn; galo > goTir; galo--) {
    ...
}

Something to double-check in your solution:


Related puzzles: