SEQUENCE SELECTION AND CONTROL STRUCTURE

 CONTROL STRUCTURE 

The work of control structure is to provide flow and logic to our program.

THERE ARE THREE TYPES OF BASIC CONTROL STRUCTURE 

1: SEQUENCE STRUCTURE

   Sequence structure refers to the sequence in which program execute instructions one after another.


2:SELECTION STRUCTURE

  Selection structure refers to the execution of instruction according to the selected condition

   which is either true or false.

There are two way to implement selection structure.

1-> BY IF ELSE STATEMENT                                    2-> SWITCH CASE STATEMENT


3:LOOP STRUCTURE

loop structure refers to the execution of instruction in a loop until the condition gets false.
















.

Comments