Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 99 - 2625 PortGPt V2.1
P. 99

    Step 8:   From the 'Math block', choose 'remainder block', it will appear on workspace as shown:

                      Step 9:     From the 'Variable', select variable 'a' and 'b', and drag them to workspace, and then

                                drop them to 'remainder' block.

                      Step 10:   Drag the remainder block, and drop it to 10' of set c to 0' block. Change b by 3' block, in
                                the 'on start' block.

                      Step 11:   Click on 'advanced', select 'Text', and click on 'Join' block. Now, 'Join' block will appears

                                on workspace, change its text to 'Remainder of a and b is: '. And in the 'world', drag the
                                variable c and drop it there.

                      Step 12:   From  the  'Blocks',  choose  'Game',  and  then  select  'splash',  it  will  appear  on  the
                                workspace. Drag the 'Join' block and drop it to the 'splash' block.

                                                                                           Variables Using Block Coding  97

| 94 95 96 97 98 99 100 101 102 103 104 |