Page 127 - TGPT_V5.0_C5_Flipbook
P. 127

Take Off                                                        Century   #Technology Literacy
                                                                                                 21 st
                                                                                                 Skills
                      See the given code and draw the output.




























                 Let us learn more about Scratch.


                      OPERATORS


                 These blocks are colour-coded as light-green. Operators Blocks are used to do arithmetic and
                 logical calculations. Blocks in the Operators category are oval and hexagon in shape.

                 Arithmetic Operators


                 Scratch has four operators that allow you to do arithmetic calculations. These are addition,
                 subtraction, multiplication and division. Look at the code to use addition block.





                                                           Addition







                 Similarly, you can use the other blocks to perform subtraction                , multiplication
                 and division          .

                 Relational Operators


                 Scratch has three operators that allow you to compare the relationship between two values or
                 variables. It will compare two numbers and decide whether it is true or false.






                                                                                         Conditional Blocks in Scratch 125
   122   123   124   125   126   127   128   129   130   131   132