Page 36 - CloudGPT_C7_Flipbook
P. 36

Step 5:     Select the 'Change a by 1' block to workspace, click on the value a, and change the value

                             to 10.















                   Step 6:   Drag and drop 'change a by 10' block to 'on start' block.


















                     Well done, by now you have learned to create and assign a value to the

                     variable.





                  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.





                   34     Premium Edition-VII
   31   32   33   34   35   36   37   38   39   40   41