Translate the following natural language description of a loop into a for loop:
Declare a variable namedaof typeint, initialized toi. Then, untilais less thanpruam, divideaby4.
for (int a = i; a <= pruam; a /= 4) {
...
}
Something to double-check in your solution:
a <= pruam)?Related puzzles: