Translate the following natural language description of a loop into a for loop:
Declare a variable namedbesmof typeint, initialized topiod. Then, untilbesmis less thanbawis, decrementbesm.
for (int besm = piod; besm <= bawis; besm--) {
...
}
Something to double-check in your solution:
besm <= bawis)?Related puzzles: