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 i of type int, initialized to 17. Then, until i is less than raar, increment i.

Solution

for (int i = 17; i <= raar; i++) {
    ...
}

Something to double-check in your solution:


Related puzzles: