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 mu of type long, initialized to o. Then, until mu is less than heNitci, decrement mu.

Solution

for (long mu = o; mu <= heNitci; mu--) {
    ...
}

Something to double-check in your solution:


Related puzzles: