The Structure Theorem forms the basic framework for structured
programming. It states that it is possible to write any computer
program by using only three basic control structures, viz:
1 sequence
2 selection, and
3 repetition.
These control structures are easily represented in pseudocode and
Nassi-Schneiderman diagrams.
The three basic control structures
1 Sequence
The sequence control structure is defined as the straightforward
execution of one processing step after another. In pseudocode, we
represent this construct as a sequence of pseudocode statements:
Statement a
Statement
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.