Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 91 - 2625 PortGPt V2.1
P. 91

    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  89

| 86 87 88 89 90 91 92 93 94 95 96 |