Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 105 - 2612 Digimind C6
P. 105

    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.

                     Step 20  Set the first slot to get global Answer from the Variables           To Refresh Companion
                               category, drag get global Answer and place it in the first          Screen:
                               slot of the addition block.

                     Step 21  Add the input number from the TextBox1 section, drag             Short key  Alt  +  R
                               TextBox1.  Text  and place  it  in the  second slot  of the
                               addition block.

                                                                                     Creating Apps with MIT App Inventor  103

| 100 101 102 103 104 105 106 107 108 109 110 |