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 uwe of type long, initialized to 67. Then, until uwe is less than or equal to udCu, decrement uwe.

Solution

for (long uwe = 67; uwe < udCu; uwe--) {
    ...
}

Something to double-check in your solution:


Related puzzles: