Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 83 - Math_Genius_1 2
P. 83

    s
                         csfld&256 çksxzkfeax d rRo (Elements of Basic-256 Programming)
                     vc ge csfld&256 çksxzkfeax Hkk"kk osQ ewy rRoksa osQ ckjs esa tkusaxsA

                     osfj,cYl (Variables)
                     oaQI;wVj dh eseksjh esa fofHkUu çdkj dh lwpukvksa] tSls VsDLV ;k uacj dks LVksj djus osQ fy, osfj,cy (variable)

                     dk mi;ksx fd;k tkrk gSA tc ge fdlh osfj,cy esa dksbZ oSY;w ;k tkudkjh LVksj djrs gSa] rks ;g mlesa LVksj dh xbZ

                     fiNyh tkudkjh dks vksojjkbV dj nsrk gSA blesa vyx&vyx le; ij vyx&vyx eku gks ldrs gSaA

                     csfld&256 esa osfj,cy cukus osQ fy,] ge vlkbuesaV vkWijsVj dk mi;ksx djrs gSaA osfj,cYl dks ifjHkkf"kr djus osQ

                     mnkgj.k fuEufyf•r gSa%

                          Number = 5

                          Fruit = "Apple"

                          Marks = 50.5

                     osfj,cYl osQ çdkj (Types of Variables)

                        la[;kRed osfj,cy (Numeric Variable)% x.kuk osQ fy, la[;kvksa dks laxzghr djus osQ fy, la[;kRed

                         osfj,cy dk mi;ksx fd;k tkrk gSA os iw.kkZad vkSj n'keyo la[;k /kj.k dj ldrs gSaA os vadh; pj ftuesa iw.kk±d
                         gksrs gSa] iw.kk±d osfj,cy dgykrs gSaA n'keyo la[;k j•us okys la[;kRed osfj,cy dks ÝyksfVax (Floating)

                         osfj,cy dgk tkrk gSA

                         mnkgj.k osQ fy,% 22] &34 vkSj 9-25

                        fLVªax osfj,cy (String Variable)% fLVªaXl o.kks± dk ,d lewg gS] tks la[;kvksa] v{kjksa vkSj vU; o.kks± dk feJ.k
                         gks ldrk gSA

                         mnkgj.k osQ fy,% ^Hello World*] ^123 Random Road*] ^ABCDE*] ^88 Golf Course Road* vkSj
                         ^12345&8976*

                     osfj,cYl osQ ukedj.k osQ fu;e (Rules for Naming Variables)
                     osfj,cy dks ge tks uke nsrs gSa] os vkbMsafViQk;lZ (identifiers) dgykrs gSaA ifjorZuh; uke esa v{kj (yksvjosQl vkSj

                     vijosQl)] vad (0 ls 9)] vkSj vaMjLdksj (_) o.kZ 'kkfey gks ldrs gSaA osfj,cYl dks uke nsus osQ fy, fuEufyf•r

                     fu;eksa dk ikyu djsa%

                        ifjorZuh; uke ges'kk ,d v{kj ;k vaMjLdksj ls 'kq: gksuk pkfg,A

                        ifjorZuh; uke osQoy v{kjksa] vadksa] vaMjLdksj vkSj MkWyj ($) dk mi;ksx dj ldrk gSA

                        osfj,cy osQ uke esa mu ekuksa dk o.kZu gksuk pkfg,] tks os LVksj djrs gSaA

                        fLVªax oSfj,cy uke esa uke osQ var esa $ (MkWyj) dk fpg~u gksuk pkfg,A mnkgj.k osQ fy,] uke$ vkSj irk$

                                                                                                csfld&256 dk ifjp;  81

| 78 79 80 81 82 83 84 85 86 87 88 |