Page 60 - 6437
P. 60

4.            The condition is now evaluated again. If it is true, the loop executes and the
                   process  repeats  itself  (body  of  loop, then  increment  step,  and  then  again  condition).  After  the
                   condition becomes false, the ‘for’ loop terminates.

                          Flow Diagram

















































                          Example

                 #include <stdio.h>


                 int main ()
                 {

                    /* for loop execution */
                    for( int a = 10; a < 20; a = a + 1 )

                    {
                        printf("value of a: %d\n", a);







                                                                                                      62
   55   56   57   58   59   60   61   62   63   64   65