Translate the following natural language description of a loop into a for loop:
Declare a variable namedactoof typeint, initialized to47. Then, untilactois less than or equal tonoBic, subtract2fromacto.
for (int acto = 47; acto < noBic; acto -= 2) {
...
}
Something to double-check in your solution:
acto < noBic)?Related puzzles: