Java Reference
In-Depth Information
for (years = n; years > 0; years--)
The increment or decrement need not be in steps of 1:
for (x = -10; x <= 10; x = x + 0.5) . . .
Figure 2
Flowchart of a for Loop
238
239
It is possibleȌbut a sign of unbelievably bad tasteȌto put unrelated conditions into
the loop header:
Search WWH ::




Custom Search