Posts

Showing posts with the label continue

Flow of Control

Image
Control Structures defines as   " The statement which controls flow of execution of the program are the control structures. " 0r " It controls the flow of execution. " There are three types of Control Statement   1- Sequence / Linear - In this type of execution,there is no control statements. All statement in a the program are executed on after one or one by one. 2- Alternative / Branching / Selection / Jumping - In this type of execution,Some parts of the program will be execute depending upon the conditions. Eg- - if statement , - if-else statement , - if ladder - switch 3- Iterative / Looping - There are the statement which execute some statement repeatedly. The statement which are execute repeatedly is known as body of the loop. Eg- - for loop -while loop -do while loop Now , There are two types of loop... a) Entry Controlled loop -  Before entry to the loop condition is checked if it is true controls enter ...