Page 92 - ThinkGPT_V2.1_C8_Flipbook
P. 92

On running the above program, you will get the following output:























                  The continue Statement

                  The continue statement is used inside loops. When a continue statement is encountered inside
                  a loop, control of the program jumps to the beginning of the loop for next iteration, skipping the
                  execution of rest of the statements inside the loop for the current iteration.

                  Syntax:
                       continue
                  Program: To print first 12 whole numbers except 8.

















                  On running the above program, you will get the following output:



























                      90     Premium Edition-VIII
   87   88   89   90   91   92   93   94   95   96   97