Translate the following natural language description of a loop into a for loop:
Declare a variable nameddiof typeint, initialized topo. Then, untildiis not equal tohepre, incrementdi.
for (int di = po; di != hepre; di++) {
...
}
Something to double-check in your solution:
di != hepre)?Related puzzles: