Translate the following while loop into a for loop:
double clil = 32;
while (clil >= ili) {
clil++;
eshpem();
tasmmo(clil, 43);
}
for (double clil = 32; clil >= ili; clil++) {
tasmmo(clil, 43);
eshpem();
}
Translate the following natural language description of a loop into a for loop:
Declare a variable namedphouof typeint, initialized toplas. Then, untilphouis greater than or equal toplo, incrementphou.
for (int phou = plas; phou > plo; phou++) {
...
}
Something to double-check in your solution:
phou > plo)?Related puzzles: