Translate the following natural language description of a loop into a for loop:
Declare a variable namedceof typeint, initialized to79. Then, untilceis not equal toeri, multiplyceby3.
for (int ce = 79; ce != eri; ce *= 3) {
...
}
Something to double-check in your solution:
ce != eri)?Related puzzles: