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 fui of type short, initialized to acla. Then, until fui is less than or equal to ernir, decrement fui.

Solution

for (short fui = acla; fui < ernir; fui--) {
    ...
}

Something to double-check in your solution:


Related puzzles: