Translate the following natural language description of a loop into a for loop:
Declare a variable namedhoirof typeint, initialized to5. Then, untilhoiris greater than or equal tohiw, decrementhoir.
for (int hoir = 5; hoir > hiw; hoir--) {
...
}
Something to double-check in your solution:
hoir > hiw)?Related puzzles: