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 tuss of type int, initialized to 57. Then, until tuss is not equal to breng, add 3 to tuss.

Solution

for (int tuss = 57; tuss != breng; tuss += 3) {
    ...
}

Something to double-check in your solution:


Related puzzles: