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 plao of type int, initialized to mu. Then, until plao is greater than or equal to oss, increment plao.

Solution

for (int plao = mu; plao > oss; plao++) {
    ...
}

Something to double-check in your solution:


Related puzzles: