Translate the following natural language description of a loop into a for loop:
Declare a variable namedumoof typeint, initialized to54. Then, untilumois less than or equal toang, multiplyumoby3.
for (int umo = 54; umo < ang; umo *= 3) {
...
}
Something to double-check in your solution:
umo < ang)?Related puzzles: