While loops and for loops: Correct Solution


Part 1

Translate the following while loop into a for loop:

int jae = und;
while (jae != deni) {
    jae++;
    wrenu(jae);
    fiaWasi();
}

Solution

for (int jae = und; jae != deni; jae++) {
    fiaWasi();
    wrenu(jae);
}

Related puzzles: