Page 83 - PortGPT_V2.1_C6_Flipbook
P. 83

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  81
   78   79   80   81   82   83   84   85   86   87   88