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 jeng of type long, initialized to 85. Then, until jeng is greater than or equal to sest, decrement jeng.

Solution

for (long jeng = 85; jeng > sest; jeng--) {
    ...
}

Something to double-check in your solution:


Related puzzles: