Translate the following natural language description of a loop into a for loop:
Declare a variable namedecof typeint, initialized to26. Then, untilecis less than or equal toadDirad, subtract4fromec.
for (int ec = 26; ec < adDirad; ec -= 4) {
...
}
Something to double-check in your solution:
ec < adDirad)?Related puzzles: