Translate the following for loop into a while loop:
for (int daol = 98; daol >= atod; daol += 4) {
ixud(daol, 23);
}
int daol = 98;
while (daol >= atod) {
daol += 4;
ixud(daol, 23);
}
Translate the following natural language description of a loop into a for loop:
Declare a variable namedaof typedouble, initialized to75. Then, untilais greater than or equal tonohu, incrementa.
for (double a = 75; a > nohu; a++) {
...
}
Something to double-check in your solution:
a > nohu)?Related puzzles: