Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 87 - Math_Genius_1 2
P. 87

    IF-THEN LVsVesaV dk ¯lVSDl (syntex) uhps fn;k x;k gSA

                                                                                                              ,XthD;wV
                                                                                         D;k
                     ¯lVSDl %                                                           oaQMh'ku    gk¡      LVsVesaV(S)
                     IF <condition> THEN                                                lgh gS
                       Statements to be executed
                                                                                      ugha

                     END IF
                                                                                         END IF
                     izksxzke û% IF-THEN dFku çn£'kr djus osQ fy,A                    LVsVesaV osQ ckn

                     biQ&nsu&,Yl LVsVesaV (IF-THEN-ELSE Statement)
                     biQ&nsu&,Yl LVsVesaV (IF-THEN-ELSE) dFku fdlh oaQMh'ku dh tk¡p djrk gSA ;fn fLFkfr dk ewY;kadu lgh gS] rks
                     IF LVsVesaV osQ ckn osQ baMsaV LVsVesaV dks fu"ikfnr fd;k tkrk gS] vU;Fkk vU; LVsVesaV osQ ckn baMsaV LVsVesaV dks fu"ikfnr

                     fd;k tkrk gSA IF-THEN-ELSE dFku dk ¯lVSDl uhps fn;k x;k gS %
                     ¯lVSDl %

                     IF <condition> THEN                                                      D;k
                                                                                   ugha                   gk¡
                          Statements to be executed                                          oaQMh'ku
                     ELSE                                                                    lgh gS
                          Statements to be executed                       ELSE CykWd esa                 IF CykWd esa fu"ikfnr
                                                                          fu"ikfnr dekaM                      dekaM
                     END IF

                     izksxzke ü% IF-THEN ;g tk¡pus osQ fy, fd mi;ksxdrkZ }kjk la[;k buiqV fo"ke ;k le gS ;k ughaA

                                                                             csfld&256 esa oaQMh'kuy vkSj yw¯ix LVsVesaV~l  85

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