Tuesday, 26 September 2017

Do... while loop with program | #24



Key Points :

] Exit Control loop :
                               
                                * The loop in which the condition is checked at the last are known as
                                exit control loops.

                                * Because the condition is checked at last, maybe the condition become false,one time
                                this loom must be exicuted.

                The exit control loop is :

                                a] do...while loop


                a] do...while loop :
                                * As do...while loop is exit control loop, condition is checked at last.
                               
                                * Because of checking condition at the last, one false statement is exicuted in
                                do...while loop.
                               
                                * The semicolon is present after while condition.

                Syntax :
                               
                                do
                                {
                                                loop body;
                                                inc/dec;
                                }while(condition);

                # Note : do...while loop can executes one false condition.

                                Loop will exicute repeately until the condition in the while statement become false.

No comments:

Post a Comment

Popular Posts :