Structured programming requires only three forms of control:
Sequence
Sequence is implemented when one statement follows another, in order.
Selection
Selection is implemented in one of three ways:
- if structure
- if/else structure
- switch structure
Repetition
Repetition (iteration) is implemented in one of three ways:
- while structure
- do/while structure
- for structure