What are the different types of control structures?
Answers
Answered by
90
Answer:
The three basic types of control structures are sequential, selection and iteration. They can be combined in any way to solve a specified problem. Sequential is the default control structure, statements are executed line by line in the order in which they appear.
Answered by
10
Sequential, selection, and iteration are the three main types of a control system.
Explanation:
- They can be mixed and matched in any way to solve an issue. The default control structure is sequential, which means that statements are executed line by line in the order in which they appear.
- The selection structure is used to determine whether or not a condition exists.
- The three main types of selection statements are "if," "if/else" and "switch" statements. The most basic and common is the "if" statement.
- The "if" and "if/else" statements can be nested. Switch statements are ideally used when there are multiple cases to choose from.
Similar questions