Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 86 - Math_Genius_1 2
P. 86

    8           csfld-256 esa oaQMh'kuy vkSj

                                      yw¯ix LVsVesaV~l

                                      (Conditional and Looping

                                      Statements in Basic-256)

                         vkidk y{;

                           fuEu osQ fo"k; esa tkuuk %
                              oaQMh'kuy LVsVesaV             ywfiax
                              iQkWj---usDLV LVsVesaV         iQkWj---usDLV LVsVesaV dk mi;ksx djus okys lSaiy izksxzkEl
                              Ogkby---,aM---Ogkby LVsVesaV     Ogkby---,aM---Ogkby LVsVesaV dk mi;ksx djus okys lSaiy izksxzkEl

                              buiQkbukbV ywi

                      ge vius nSfud thou esa mu ifjfLFkfr;ksa osQ vk/kj ij fu.kZ; ysrs gSa ftuesa ge gSa ;k ftu ifjfLFkfr;ksa dks ge
                      tkurs gSa fd ge fdlh fo'ks"k fLFkfr esa lkeuk djsaxsA mnkgj.k osQ fy,] mijksÙkQ fLFkfr esa] vkidk fu.kZ; ,d 'krZ ij
                      vk/kfjr gksxk] ;fn fyÝV dke dj jgh gS] rks fyÝV ysa ;k fiQj lhf<+;k¡ p<+saA tc ge çksxzkfeax dj jgs gksrs gSa rks

                      ge blh rjg dh fLFkfr;ksa dk lkeuk djrs gSaA gesa oqQN fu.kZ; ysus gksrs gSa vkSj bu fu.kZ;ksa osQ vk/kj ij dk;ZØe
                      esa c;kuksa dks fØ;kfUor fd;k tkrk gSA oqQN fLFkfr;ksa esa] gekjs dk;ZØe fooj.k ifj.kke ij vk/kfjr gksrs gSaA ;fn

                      ifj.kke lR; gS] rks oQekaM~l dk ,d lsV fu"ikfnr (executed) fd;k tkrk gS vkSj ;fn ifj.kke xyr gS] rks oQekaM~l
                      dk nwljk lsV fu"ikfnr fd;k tkrk gSA

                          daMh'kuy LVsVesaV~l (Conditional Statements)
                      csfld 256 (BASIC-256) esa fu.kZ; ysuk oaQMh'kuy LVsVesaV ;k fu.kZ; ysus okys LVsVesaV n~okjk fd;k tkrk gS tks

                      dk;ZØe fu"iknu osQ çokg dh fn'kk r; djrs gSaA pw¡fd os çksxzke osQ fu"iknu dks fu;af=kr djrs gSa] blfy, ge mUgsa
                      oaQVªksy LVsVesaV Hkh dgrs gSaA BASIC-256 esa miyC/ oaQVªksy (Control) LVsVesaV~l uhps fn, x, gSa %

                          IF-THEN LVsVesaV

                          IF-THEN-ELSE LVsVesaV

                      biQ&nsu LVsVesaV (IF-THEN Statement)
                      (IF-THEN) dFku ljyre oaQMh'kuy LVsVesaV gSA ;gk¡] if CykWd osQ Hkhrj oqQN LVsVesaV ;k LVsVesaV osQ CykWd dks rHkh
                      fu"ikfnr (execute) fd;k tkrk gS] tc fufnZ"V oaQMh'ku (specified condition) dk ewY;kadu lgh gksrk gSA ;fn

                      oaQMh'ku xyr (false) dk ewY;kadu djrh gS] rks fu"iknu dk fu;a=k.k if CykWd osQ ckgj] vafre dFku osQ ikl dj
                      fn;k tkrk gSA

                         84
                         84  Play (Ver. 1.0)-VII

| 81 82 83 84 85 86 87 88 89 90 91 |