Translate the following natural language description of a loop into a for loop:
Declare a variable namedissof typelong, initialized toar. Then, untilissis greater than or equal toflena, multiplyissby2.
for (long iss = ar; iss > flena; iss *= 2) {
...
}
Something to double-check in your solution:
iss > flena)?Related puzzles: