Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 93 - Math_Genius_1 2
P. 93

    3-  fn, x, dk;ZØe ij fopkj djsa vkSj fuEufyf•r ç'uksa ds mRrj nhft,A

                             sum = 0

                             FOR N = 1 TO 30 STEP 3

                             sum = sum + N
                             NEXT N

                             PRINT "sum = " + sum
                             d- mi;qZDr ywi fdruh ckj pysxk\                            ...............................................................
                             [k- mi;qZDr dk;ZØe dk vkmViqV D;k gksxk\                    ...............................................................

                       II. nh?kZ mRrjkRed iz'u

                          1-  IF-ELSE LVsVesaV osQ fy, ÝykspkVZ cukb,A

                          2-  ywfiax D;k gS\ BASIC-256 esa mi;ksx fd, tkus okys nks ywfiax LVsVesaV dkSu ls gSa\

                          3-  ¯lVSDl fy•sa vkSj WHILE...END WHILE ywi LVsVesaV dk ÝykspkVZ cukb,A

                      III. fuEufyf[kr izksxzke dk vkmViqV D;k gksxk\

                          1-  FOR N = 1 TO 10

                             IF (N = 1 ) THEN
                             PRINT "I had " + N + " slice of pizza."

                             ELSE
                             PRINT "I had " + N + " slices of pizza."

                             END IF
                             NEXT N
                          2-  FOR N = 1 TO 10

                             PRINT "I had " + N + " slices of pizza."
                             NEXT N
                          3-  sum = 0

                             FOR N = 1 TO 40 STEP 4

                             sum = sum + N
                             NEXT N

                             PRINT "sum = " + sum
                          4-  number = 1

                             WHILE number < 10
                             PRINT number

                             number = number + 3
                                                                             csfld&256 esa oaQMh'kuy vkSj yw¯ix LVsVesaV~l  91

| 88 89 90 91 92 93 94 95 96 97 98 |