Control Structures

Structured programming requires only three forms of control:

· Sequence

· Selection

· Iteration

Selection is implemented in one of three ways:

· If/Then structure (single selection)

· If/Then/Else structure (double selection)

· Select Case structure (multiple selection)

fig5_26.jpg (30808 bytes)

 

Repetition is implemented in one of six ways:

· While/Wend structure

· Do While/Loop structure

· Do/Loop While structure

· Do Until/Loop structure

· Do/Loop Until structure

· For/Next structure

fig5_27a.jpg (19081 bytes)

fig5_27b.jpg (25204 bytes)