Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 89 - Math_Genius_1 2
P. 89

    lkekU; ik;Fku izksxzke cukuk (Creating Simple Python Programs)
                     vkb,] buiqV( ) vkSj ¯izV( ) LVsVesaV vkSj vkWijsVjksa dk mi;ksx djosQ oqQN ljy çksxzke fy•saA

                     mnkgj.k û% mi;ksxdrkZ ls ,d vk;r dh yackbZ vkSj pkSM+kbZ ysdj mlosQ {ks=kiQy vkSj ifjf/ dh x.kuk djukA

                                       izksxzke dksM (Program code)               izksxzke vkmViqV (Program output)
                     uksV% bl mnkgj.k esa ç;qÙkQ int ( ) iaQD'ku] vk;r osQ {ks=kiQy vkSj ifjf/ dh x.kuk djus osQ fy, mi;ksxdrkZ osQ buiqV
                     dks iw.kk±d MsVk Vkbi esa ifjofrZr djrk gSA

                     mnkgj.k ü% Hkqxrku dh tkus okyh jkf'k dk irk yxkus osQ fy,A

                                     izksxzke dksM (Program code)                 izksxzke vkmViqV (Program output)
                     mnkgj.k ý% deZpkjh osQ vafre osru dk irk yxkus osQ fy,A

                                izksxzke dksM (Program code)                      izksxzke vkmViqV (Program output)
                      vkvks nksgjk,¡

                           ik;Fku ,d 'kfDr'kkyh] mPp&Lrjh;] lkekU; mís';] O;k[;kf;r] laoknkRed] cgq&eap vkSj oLrq&mUeq• çksxzkfeax
                            Hkk"kk gSA
                           LØhu ij VsDLV çn£'kr djus osQ fy, ik;Fku esa ¯izV( ) LVsVesaV dk mi;ksx fd;k tkrk gSA

                           ik;Fku osfj,cy eseksjh ykWosQ'ku gSa] ftudk mi;ksx ewY;ksa dks bdV~Bk djus osQ fy, fd;k tkrk gSA
                           dhoMZ ik;Fku esa vkjf{kr 'kCn gSaA

                           MsVk Vkbi r; djrs gSa fd osfj,cy esa fdl çdkj dk MsVk bdV~Bk fd;k tkrk gSA
                           vkWijsVj fo'ks"k çrhd gSa] ftudk mi;ksx vadxf.kr ;k rk£dd x.kuk djus osQ fy, fd;k tkrk gSA
                           desaV~l dksM osQ vanj fy•s x, VsDLV gSa] ftUgsa ik;Fku baVjizsVj }kjk vuns•k dj fn;k tkrk gSA
                           input( ) LVsVesaV dk mi;ksx ;wtj ls buiqV ysus osQ fy, fd;k tkrk gSA

                           osfj,cy eseksjh LFkku gSa] ftudk mi;ksx ewY;ksa dks bdV~Bk djus osQ fy, fd;k tkrk gSA

                                                                                                  ik;Fku dk ifjp;   87

| 84 85 86 87 88 89 90 91 92 93 94 |