Wednesday, 27 September 2017

Nesting of loops with program | #25



Key Points :

# Nesting Of Loops :-
                               
                                * Like 'if' statement, loops can be nested.
                                * Nesting is a process of putting one into another.
                                * Nesting of loops means we can put one loop into another or we can put multiple loops
                                  in the single loop.

                Example Syntax :-
                         
                                for(i=o;i<=j;i++)
                                {
                                satatement 1;
                                satatement 1;
                                .
                                .
                                satatement n;
                                                                for(a=o;a<=b;a++)
                                                {
                                                                satatement 1;
                                                                satatement 1;
                                                                .
                                                                .
                                                                satatement n;
                                                }
                                }



No comments:

Post a Comment

Popular Posts :