Page 45 - CloudGPT_C6_Flipbook
P. 45

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   43
   40   41   42   43   44   45   46   47   48   49   50