Page 37 - Touchcode_C6_Flipbook
P. 37

ADDITION OPERATION USING BLOCK CODING
                 An  addition  arithmetic operation is used  to add  the values  stored in  two  variables.

                 The addition of these variables is displayed as an output of the program. Let’s implement
                 addition operation in programming through a coding task.




                                                      Coding Task            02                    Experiential Learning


                                                 To perform addition operation

                  To perform the task, follow these steps:

                  Step 1:    Visit the link: https://arcade.makecode.com/, and create a new project 'Addition
                            Operation'.

                  Step 2:   The following screen appears:




















                  Step 3:   Click on 'Variables', select 'Make a variable', write the name of the variable as 'a',

                            then click on 'OK'. Variable 'a' will appear in 'Make a Variable…'.





























                                                                                 Variables Using  Block Coding   35
   32   33   34   35   36   37   38   39   40   41   42