Translate the following natural language description of a loop into a for loop:
Declare a variable namedulroof typeint, initialized tounsu. Then, untilulrois greater than or equal tosaor, divideulroby2.
for (int ulro = unsu; ulro > saor; ulro /= 2) {
...
}
Something to double-check in your solution:
ulro > saor)?Related puzzles: