Chapter 5 Control Structures: Part 2 201 Good Programming Practice 5.5 Vertical spacing above and below control structures, and indentation of the bodies of control structures within the control structures headers, gives programs a two-dimensional appearance that enhances readability. 5.3 The forRepetition Structure The for repetition structure handles all of the details of counter-controlled repetition. To illustrate the power of the for structure, let us rewrite the applet of Fig. 5.1. The result is shown in Fig. 5.2. Remember that this program requires a separate HTML document to load the applet into the appletviewer. For the purpose of this applet, the
This entry was posted
on Tuesday, October 23rd, 2007 at 8:05 am and is filed under PHP5.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.