Translate the following natural language description of a loop into a for loop:
Declare a variable namedvulof typeint, initialized to8. Then, untilvulis less thansedi, subtract2fromvul.
for (int vul = 8; vul <= sedi; vul -= 2) {
...
}
Something to double-check in your solution:
vul <= sedi)?Related puzzles: