Translate the following natural language description of a loop into a for loop:
Declare a variable namedemof typelong, initialized to97. Then, untilemis greater than or equal todiOsh, incrementem.
for (long em = 97; em > diOsh; em++) {
...
}
Something to double-check in your solution:
em > diOsh)?Translate the following for loop into a while loop:
for (short pudo = ple; pudo > icIl; pudo--) {
dishzi(pudo);
}
short pudo = ple;
while (pudo > icIl) {
pudo--;
dishzi(pudo);
}
Related puzzles: