Translate the following natural language description of a loop into a for loop:
Declare a variable namedaoof typeint, initialized tooce. Then, untilaois greater than or equal topaa, incrementao.
for (int ao = oce; ao > paa; ao++) {
...
}
Something to double-check in your solution:
ao > paa)?Translate the following while loop into a for loop:
int xu = e;
while (xu >= cec) {
xu += 3;
muroc();
caed(xu, 12);
}
for (int xu = e; xu >= cec; xu += 3) {
caed(xu, 12);
muroc();
}
Related puzzles: