What are the three basic programming control structures?
the three basic programming control structures are
1.Conditional structure:
If and Else statement is used in the programming for conditional structures. This statement uses a specific condition check. If this condition is true the code following the If statement will be executed otherwise the Else portion will be executed. The Else part of the If state is optional. The syntax of this condition structure varies language to language.
2.Iteration structure:Iteration structure or loops are used to repeat the instructions. There are mainly three types of loops available. For Loop, While Loop, do while loop. These loops repeat the instruction until a specific condition is true.
3.Selective structure:
Switch statement is called selective structure. In this we provide a number of options and take decision depending upon the choice.
ไม่มีความคิดเห็น:
แสดงความคิดเห็น