Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 111 - Gujrati Play V2.0 Class 8 Flipbook
P. 111

    user_type = "member"

                     coupon_value = "invalid"

                     IF user_type = "member" OR coupon_value = "valid" THEN

                         PRINT "Eligible for discount"

                     ELSE

                         PRINT "Not eligible for discount"

                            rzMfkWLx {kxu Ãkkºk

                     ík{u þwt òuÞwt?
                     çktLku «kuøkúk{{kt yuLz yÚkðk ykuh Lkku WÃkÞkuøk fheLku çku IF þhíkku òuzkÞu÷e Au. ytrík{ Ãkrhýk{ MktÞwõík Ãkrhýk{ Ãkh ykÄkh
                     hk¾u Au.

                        yuLz: òu çktLku rMÚkríkyku Mkk[e nkuÞ íkku s Ãkrhýk{ Mkk[wt ykðu Au. òu fkuR yuf rMÚkrík ¾kuxe nkuÞ, íkku Ãkrhýk{ ¾kuxwt
                        ykðþu.
                        ykuh: òu ykuAk{kt ykuAe yuf þhík Mkk[e nkuÞ íkku Ãkrhýk{ Mkk[wt ykðu Au. òu çktLku ¾kuxe nkuÞ, íkku Ãkrhýk{ ¾kuxwt ykðþu.

                     nðu, çktLku {kxu ík{khk sðkçkku ÷¾ku.

                     1.   age =20                                       2.   shop = 500
                         IF age >= 12 AND age <= 19 THEN                    customer = "new"
                             PRINT "You are a teenager"                     IF shop > 100 OR customer = "old" THEN
                         ELSE                                                   PRINT "Eligible for a free gift"

                             PRINT "You are not a teenager"                 ELSE
                                                                                PRINT "Not eligible for a free gift

                         «kuøkúk{{kt ÷qÃk
                     ÷qÃk Mkq[LkkykuLkkuu Mk{qn yÚkðk fkuzLkku ç÷kuf ðkhtðkh [÷kððkLke {tsqhe ykÃku Au. íku ÃkwLkhkðŠíkík fkÞkuoLku Mð[kr÷ík fhðk{kt {ËË fhu Au yLku yuf s
                     Mkq[LkkykuLku ½ýe ð¾ík ÷¾ðkLke sYrhÞkíkLku xk¤eLku fkuzLku ðÄw fkÞoûk{ çkLkkðu Au. ßÞkhu ÷qÃk fkÞ{ {kxu (yLktíkÃkýu) ÃkwLkhkðŠíkík ÚkkÞ Au, íÞkhu íkuLku
                     yLktík ÷qÃk fnuðk{kt ykðu Au. çku «fkhLkk ÷qÃk nkuÞ Au.

                        fkW®Lxøk ÷qÃk : yk fkuzLkk ç÷kufLku [ku¬Mk MktÏÞk{kt ÃkwLkhkðŠíkík fhu Au.

                         þhíke ÷qÃk : yk [ku¬Mk rMÚkrík MkwÄe ÃknkU[u íÞkt MkwÄe ÃkwLkhkðŠíkík ÚkkÞ Au, suLkku yÚko yu ÚkkÞ fu rMÚkrík Mkk[e hnu íÞkt MkwÄe íkuyku [k÷w
                        hnu Au.

                                                                                              yÕøkkurhÄr{f RLxur÷sLMk  109

| 106 107 108 109 110 111 112 113 114 115 116 |