Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 124 - Gujrati Play V2.0 Class 8 Flipbook
P. 124

    ¿kkLk Mktøkún   ‘fÕÃkLkk fhku, ík{khe ÃkkMku sBÃk Mxux{uLxLke þÂõík Au, suLkkÚke ík{u çkúñktzLkk fkuRÃký ¼køk{kt fqËe þfku Akuu. ík{u õÞkt

                                        fqËe Ãkzþku yLku Ëhuf Ãkrh{ký{kt ík{u fÞk õðuMx yÚkðk r{þLk nkÚk Ähþku ?’

                       «kuøkúk{ 10: «Úk{ Ãkkt[ fwËhíke MktÏÞkyku W{uhðk {kxu.

                          Program10.py
                       File  Edit  Format   Run    Options   Window    Help

                       #Program to add first five natural numbers

                       sum = 0
                       a = 1
                       while (a <= 5):
                           sum += a
                           a += 1
                       print('The sum of first five natural number is', sum)

                      ík{Lku Lke[u {wsçk ykWxÃkwx {¤þu:

                          Output

                       The sum of first five natural number is 15

                       «kuøkúk{ 11: rºkfkuýLkk YÃk{kt ½xíkk ¢{{kt íkkhkykuLke ÃkuxLko AkÃkðe.

                      **********
                      *********
                      ********
                      *******
                      ******
                      *****
                      ****
                      ***                                                            Output
                      **                                                          **********
                      *                                                           *********
                          Program11.py                                            ********
                                                                                  *******
                       File  Edit  Format    Run   Options   Window    Help       ******
                                                                                  *****
                       #Program to create star pattern
                                                                                  ****
                                                                                  ***
                       for i in range(10, 0, -1):
                                                                                  **
                           print("*"*i)                                           *

                      122       Play (Ver. 2.0)-VIII

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