Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 96 - Math_Genius_1 2
P. 96

    mijksDr ywi fn•k, x, vuqlkj vkmViqV nsxk%

                      fn, x, ekuksa osQ lsV ¹10] 15] 20] 25º osQ çR;sd eku
                      10] 15] 20 vkSj 25 osQ fy, ywi dh ckWMh cukus okyk
                      LVsVesaV yxkrkj nksgjkrk gSA

                      ^/U;okn!* LVsVesaV ywi ckWMh osQ ckgj gS] blfy, ywi

                      osQ fu"iknu (execute) osQ iwjk gksus osQ ckn bls var
                      esa ,d ckj fu"ikfnr fd;k tkrk gSA

                                                                                           vkmViqV (Output)
                          tai LVsVesaV (Jump Statements)
                      dHkh&dHkh] ,slh fLFkfr gksrh gS] tc çksxzke osQ fu;a=k.k dks ywi ckWMh ls ckgj LFkkukarfjr djus dh vko';drk gksrh
                      gS] Hkys gh vuqØe osQ lHkh ewY;ksa dks ugha fy;k x;k gksA bl mís'; osQ fy, ik;Fku esa tai LVsVesaV dk mi;ksx fd;k

                      tkrk gSA ik;Fku nks tai LVsVesaV çnku djrk gS&break vkSj continue&tks ywi ckWMh ls ckgj fudyus osQ fy, ywi
                      osQ Hkhrj mi;ksx fd, tkrs gSaA

                      czsd LVsVesaV (The break Statement)
                      break LVsVesaV ml ywi dks lekIr djrk gS] ftlosQ Hkhrj og fufgr gSA ;g ywi esa 'ks"k dFkuksa dks NksM+ nsrk gS vkSj
                      ywi osQ ckn LVsVesaV ij tai dj tkrk gSA fuEufyf•r vkjs• ,d break LVsVesaV dh dk;Zç.kkyh dh O;k[;k djrk gSA
                      break LVsVesaV dk flaVSDl bl çdkj gS%

                      for < variable> in < sequence> :

                          statement 1

                          if < conditional expression> :
                              statement 2                                       ywi osQ fy,      lR;
                                                                              oaQMh'kuy ,Dizs'ku               czsd
                              statement 3

                              break
                              statement 4                                              vlR;

                      mnkgj.k osQ fy,%                                    czsd LVsVesaV dk ÝykspkVZ (Flowchart of break statement)

                                                     czsd LVsVesaV dk mi;ksx (Using break statement)

                         94  Play (Ver. 1.0)-VIII

| 91 92 93 94 95 96 97 98 99 100 101 |