Page 60 - Touchcode_C4_Flipbook
P. 60

C.  Read the program and colour the boxes.


                                              If (number is 1) then colour Blue

                                              If (number is 2) then colour Green

                                              If (number is 3) then colour Yellow

                                              If (number is 4) then colour Purple

                                              If (number is 0) then do not colour



                                4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4

                                4                                                                      4
                                4           2 2 3 3 1 1                                                4

                                4           2 2 3 3 1 1                                                4
                                4                           2 2 1 1 3 3                                4

                                4                           2 2 1 1 3 3                                4
                                4                                          2 2 1 1                     4
                                4                                          2 2 1 1 3 3                 4

                                4                                                          3 3         4

                                4                                                                      4
                                4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4


                  D.  Write and discuss a program to check if a number is divisible by 3 or not.
































                   58      Touchcode-IV
   55   56   57   58   59   60   61   62   63   64   65