Page 64 - Touchcode_C5_Flipbook
P. 64

3                                                 4
                          If number ends with a 0                           If number ends with a 5

                          Then                                              Then


                          say “I want it.”                                       print “Divisible by 5.”

                          Else                                              Else

                                say “I don’t want it.”                             if number ends with a 0 then
                                                                                 print “ Divisible by 5 and 10.”
                          Give the output for the number
                          as:                                               Give the output for the number as:

                          a. 20      _______________________                a. 45     _______________________

                          b. 42      _______________________                b. 55     _______________________

                          c. 86      _______________________                c. 20     _______________________

                          d. 60      _______________________                d. 25     _______________________






                  B.  Write an if condition to display “Yes” or “No” if it is Sunday                           Time Taken
                       today and a cricket match also.                                                   Min.


















                  C.  Write an if condition to display “Yes” or “No” if it is a                                Time Taken
                       weekday today or your exam.                                                       Min.



















                   62      Touchcode–V
   59   60   61   62   63   64   65   66   67   68   69