Translate the following natural language description of a loop into a for loop:
Declare a variable namednesof typelong, initialized tohi. Then, untilnesis not equal tomial, add3tones.
for (long nes = hi; nes != mial; nes += 3) {
...
}
Something to double-check in your solution:
nes != mial)?Translate the following for loop into a while loop:
for (double pri = 33; pri != roBreel; pri += 2) {
epuec(pri);
}
double pri = 33;
while (pri != roBreel) {
pri += 2;
epuec(pri);
}
Related puzzles: