Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 135 - 2505_CoreGPT(Podar)_Flipbook_C5
P. 135

    Step 5  Click on OK button.

                     Step 6  Repeat steps 3 to 4 to create two more variables, N2 and Quotient.

                     Step 7  Click and drag                       block to Script area.

                     Step 8  Click on the drop-down arrow and select N1.

                     Step 9  Set the value of N1 as 12.

                     Step 10 Repeat Steps 7 to 9 to set the value of N2 as 5.

                     Step 11 Repeat Steps 7 to 9 to use the variable Quotient.

                     Step 12 Drag              to the slot to set value of Quotient.

                     Step 13 Drag the variable blocks of N1 and N2 to fit in the slots 1 and 2 respectively

                               of the division block.

                     Step 14 Click on the Green Flag button to run the program.

                           APPLYING CONDITIONS TO A PROGRAM

                     Sometimes, the flow of the program may not be in a sequence. There are situations
                     when the control of the program has to be transferred to a different set of instructions
                     upon a condition becoming true or false.

                                                                                     Basic Programming in Scratch       133

| 130 131 132 133 134 135 136 137 138 139 140 |