Translate the following natural language description of a loop into a for loop:
Declare a variable namedpsuof typelong, initialized tohelf. Then, untilpsuis less thanstac, subtract4frompsu.
for (long psu = helf; psu <= stac; psu -= 4) {
...
}
Something to double-check in your solution:
psu <= stac)?Related puzzles: