Translate the following natural language description of a loop into a for loop:
Declare a variable namednoof typeint, initialized to86. Then, untilnois not equal topoEn, dividenoby3.
for (int no = 86; no != poEn; no /= 3) {
...
}
Something to double-check in your solution:
no != poEn)?Related puzzles: