Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 110 - 2505_CoreGPT(Podar)_Flipbook_C7
P. 110

    Program 3: To print a right triangle of stars using nested loop.

                      Program 4: To print a pattern of numbers using nested loop.

                               Tech Funda

                           Once the loop reaches its end, we use the keyword END WHILE to signal that the while
                           loop will end. That way the loop does not continue forever, creating an infinite loop.

                    108     Premium Edition-VII

| 105 106 107 108 109 110 111 112 113 114 115 |