Page 77 - Touchcode_C8_Flipbook
P. 77

Step 4:  From ‘Loops’ select ‘for index from 0 to 100’,

                            and  drop it to ‘on  start’ block, below  the
                            ‘splash’ block. Drop the variable ‘number’
                            to ‘index’.

                  Step 5:  From ‘Logic’ select ‘if’ block and drop it to
                            the ‘do’ block of ‘for’ block.

                  Step 6:  From ‘Logic’ select the ‘comparison’ block
                            and drop it to the ‘true’ of ‘if’ block. Change the sign of ‘comparison’ block to ‘=’.

                  Step 7:  From ‘Math’ select the ‘remainder’ block, and drop it to ‘0’ of ‘comparison’ block.

                            In  the first ‘0’ of ‘remainder’ block, drag and drop ‘number’  from ‘variables’.
                            Change the value of second ‘1’ of ‘remainder’ to ‘3’.

                  Step 8:  From ‘Game’ select the ‘splash’
                            block.    Drop      ‘number’     from
                            ‘variables’ in the message box.

                  Step 9:  Place the ‘splash’ block to ‘if’ block.

                  Step 10: Click on ‘Start the simulator’ button

                            to view the output. Press ‘A’ to view
                            the next output.



























                                                                                        Advanced Sequencing      75
   72   73   74   75   76   77   78   79   80   81   82