Page 100 - KEC Khaitan C4 Flipbook
P. 100

Step  8   Select the Broom sprite and create the following script. Make the required changes.















                  Step  9   Press Spacebar key to run your story.




                            OPERATORS BLOCK

                  Scratch allows us to perform arithmetic and logical operations. It provides this feature
                  through Operators block. These blocks are light-green in colour.


                  ARITHMETIC OPERATORS

                  Scratch has four operators that allow you to do arithmetic calculations. These are addition,
                  subtraction, multiplication and division.



                        Operator                Meaning                               Examples





                                                                    when    clicked
                             +            Addition                  say The sum of 100 + 50 is  for 2  seconds

                                                                    say  100  + 50




                                                                    when    clicked
                             –            Subtraction               say The Difference between 100 and 50 is  for 2  seconds

                                                                    say  100  – 50




                                                                    when    clicked
                             *            Multiplication            say The Product of 10 and 20 is  for 2  seconds

                                                                    say  10  * 20




                                                                    when    clicked
                             /            Division                  say The Answer of 200/10 is  for 2  seconds

                                                                    say  200  / 10




                   98   Premium Edition-IV
   95   96   97   98   99   100   101   102   103   104   105