Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 83 - 2632_CodeMind
P. 83

    When you run the project the output from initial stage to final stage are as follows:

                                               Initial Stage                           Final Stage

                                                                  Tech Fact

                         You can also see JavaScript/Python code equivalent to given block code in MakeCode Arcade.

                           For Loop

                      The for loop is a counting loop, which is useful for situations where you need a counter variable that can
                      be used within the loop. It repeats a block of code a specific number of times, like the repeat loop, but
                      with more control over the iteration process.
                      Let us create a project in MakeCode Arcade that demonstrates the use of for block to display number
                      from 0 to 10. Prepare the project in MakeCode Arcade as shown below:

                      When you run the project, the following output displays the first iteration of the for loop.

                      82    Premium Edition-VIII

| 78 79 80 81 82 83 84 85 86 87 88 |