Page 129 - 2611_SmartGPT Pro V(5.0) C-5
P. 129

Step 15  Inside the Button1 block, drag set global List to and connect create empty list
                           from the Lists category.

                 Step 16  Drag set global Answer to and connect the number block (0) from the Math

                           category.




















                 Step 17  Add a Loop for multiplication, inside the Button1 block, drag the block 'for each
                           number from 1 to 10 by 1' from the Control category. This loop will repeat 10

                           times, calculating the multiplication values from 1 to 10.
                 Step 18  Drag the set global Answer to block from the Variables section.


                 Step 19  Add the multiplication logic from the Math category, drag the addition block (+)
                           and connect it to set global Answer to.
























                                                                                 Creating Apps with MIT App Inventor  127
   124   125   126   127   128   129   130   131   132   133   134