30.07.2013 Views

Visual Basic.NET How to Program (PDF)

Visual Basic.NET How to Program (PDF)

Visual Basic.NET How to Program (PDF)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

174 Control Structures: Part 2 Chapter 5<br />

Repetition is implemented in one of seven ways:<br />

While structure<br />

Do While/Loop structure<br />

Do/Loop While structure<br />

Do Until/Loop structure<br />

Do/Loop Until structure<br />

For/Next structure<br />

For Each/Next structure (introduced in Chapter 7)<br />

It can be proven straightforwardly that the While structure is sufficient <strong>to</strong> provide any<br />

form of repetition. Everything that can be done with the Do While/Loop, Do/Loop<br />

While, Do Until/Loop, Do/Loop Until, For/Next and For Each/Next structures<br />

can be done with the While structure (although perhaps not as elegantly).<br />

Rule 3<br />

Rule 3 Rule 3<br />

Fig. Fig. 5.28 5.28 Applying rule 3 of Fig. 5.25 <strong>to</strong> the simplest flowchart.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!