Translate the following natural language description of a loop into a for loop:
Declare a variable namedriiof typeint, initialized tou. Then, untilriiis greater than or equal toentve, add4torii.
for (int rii = u; rii > entve; rii += 4) {
...
}
Something to double-check in your solution:
rii > entve)?Translate the following while loop into a for loop:
int en = ca;
while (en > aiMec) {
en += 2;
tafpo(en, 35);
}
for (int en = ca; en > aiMec; en += 2) {
tafpo(en, 35);
}
Related puzzles: