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 e of type short, initialized to 27. Then, until e is less than soSa, decrement e.

Solution

for (short e = 27; e <= soSa; e--) {
    ...
}

Something to double-check in your solution:


Related puzzles: