Translate the following natural language description of a loop into a for loop:
Declare a variable namedoiof typeint, initialized to30. Then, untiloiis less than or equal toeap, multiplyoiby4.
for (int oi = 30; oi < eap; oi *= 4) {
...
}
Something to double-check in your solution:
oi < eap)?Related puzzles: