There are basically three forms of statements used to control program flow:
- Conditional statements that allow selective execution of statements based on a condition.
- if statements
- switch statements
- Loop statements that enable repeated execution of statements as long as a condition is true.
- for statement
- while statement
- foreach statement
- Jump statements that enable transfer of control to a specified statement.
- break statement
- goto statement
- continue statement
- exit statement
- return statement