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 melo of type double, initialized to 32. Then, until melo is less than stii, decrement melo.

Solution

for (double melo = 32; melo <= stii; melo--) {
    ...
}

Something to double-check in your solution:


Related puzzles: