Tuesday, 26 September 2017

Looping statements | #21



Key Points :

# Looping Statements :-

                                * If we want to perform any action repeatly, decresing LOC(Line Of Code), we use
                                looping Statements.

                                * Looping statement perform same action repeatly. We can limit looping statements so
                                that it perform such operation upto a definite time.

                                * In every looping statements there are 3 statements
                                                a) Initilisation
                                                b) Condition
                                                c) Increment/Decrement
                               
                                * In all looping statements initilisation takes place at first.

                Looping statements are mainly of 2 types

                                1] Entry Control loop
                                2] Exit Control loop

                1] Entry Control loop
                                The looping in which the condition is checked just after initilisation are known as
                                entry control loops.
                                The entry control loops are as follows :

                                a] while loop
                                b] for loop
                                1] Entry Control loop :
                               
                                The loop in which the condition is checked just after initilisation are known as
                                entry control loops.
                                The entry control loops are as follows :

                                a] while loop
                                b] for loop


No comments:

Post a Comment

Popular Posts :