Translate the following natural language description of a loop into a for loop:
Declare a variable namedniof typedouble, initialized topri. Then, untilniis less than or equal tociSo, decrementni.
for (double ni = pri; ni < ciSo; ni--) {
...
}
Something to double-check in your solution:
ni < ciSo)?Related puzzles: