Sequential control structure
Sequential control structure can be described as a line by line execution of a code statement. In this
structure, the code is executed one after the other, line by line in the order the code statement appears.
Examples:
Calculation (Arithmetic operation)
Reading a file
Outputting a string
Conditional control structure
This control structure can be used to control the flow of a code execution based on certain conditions.
The results in one of two possible outcomes, true or false also known as Boolean values. (E.g IF/ELSE)
Examples:
User Authentication
Voters Registration (Nationality and Eligible age check)
Iterative control structure
Iterative can be described as repetitive control or loop. In this control structure, a block of code is
executed repetitively until a certain state is met. (E.g For loops, while loops).
Examples:
Input Validation
Searching and sorting