Translate the following natural language description of a loop into a for loop:
Declare a variable namedolof typelong, initialized to20. Then, untilolis less thandermi, subtract2fromol.
for (long ol = 20; ol <= dermi; ol -= 2) {
...
}
Something to double-check in your solution:
ol <= dermi)?Related puzzles: