Translate the following natural language description of a loop into a for loop:
Declare a variable namedsesof typeint, initialized toso. Then, untilsesis less than or equal toulTe, multiplysesby2.
for (int ses = so; ses < ulTe; ses *= 2) {
...
}
Something to double-check in your solution:
ses < ulTe)?Related puzzles: