Page 75 - PortGPT_V2.1_C6_Flipbook
P. 75

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

















                  Step 6:   Click on 'Variables', select 'Make a variable', write the name of the variable as
                            'b', then click on 'OK'. Variable 'b' will appear in 'Make a Variable…'. Select the
                            'Change b by 1'.






















                  Step 7:   Click on the value b, change its value to 20. Drag and Drop 'change b by 20' block
                            to 'on start' block.






















                  Step 8:   In the same way, Create a variable 'c' , after creating a variable c; select 'set c to
                            0' block and drop it to 'on start' block below the 'change b by 20' block.








                                                                                       Variables Using Block Coding  73
   70   71   72   73   74   75   76   77   78   79   80