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 poum of type int, initialized to eshe. Then, until poum is greater than or equal to emErles, decrement poum.

Solution

for (int poum = eshe; poum > emErles; poum--) {
    ...
}

Something to double-check in your solution:


Related puzzles: