Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 123 - 2609_Logicode
P. 123

    Imagine you possess the power of the jump statement, allowing you to leap to any
                                        part of the universe. Where would you jump to, and what quests or missions would
                                        you undertake in each dimension?

                     Program: To print a pattern using for loop.

                                      *
                                      **
                                      ***
                                      ****
                                      *****
                                      ******
                                      *******
                                      ********

                                      *********

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

                     Program: To print multiplication table of number taken as input from user.

                                                                                           Looping Statements in Python  121

| 118 119 120 121 122 123 124 125 126 127 128 |