Page 142 - Plus_V2.2_C8_Flipbook
P. 142

Program 8: To demonstrate the use of the continue statement in a loop.












                  On running the program, we get the following output:




















                   Let’s PraCtiCe                                                                  Computational Thinking

                     Write a program to print the even numbers between 1 and 25 by using the continue statement.



                         SOME MORE PROGRAMS


                   Program 9: To display a pattern using while loop.













                  You will get the following output:





















                  140   Premium Edition-VIII
   137   138   139   140   141   142   143   144   145   146   147