While loops and for loops: Correct Solution


Part 1

Translate the following natural language description of a loop into a for loop:

Declare a variable named al of type int, initialized to 70. Then, until al is less than hiEwia, increment al.

Solution

for (int al = 70; al <= hiEwia; al++) {
    ...
}

Something to double-check in your solution:


Related puzzles: