Loops


Collapse Content

As mentioned in How Computers Calculate, computers ultimately just do a few very simple operations. They have so much power because they can repeat the same operation any number of times, and do so very quickly. Programmers use loops to tell a computer to repeat an operation.

Use the "repeat-until" block to create a loop. Put instruction blocks inside the loop, which will be executed on each run (or iteration) through the loop. The loop is set to stop once the goal is reached.

Guidelines:
Level 3 - Use the loop!
Level 4 - Find the right steps to take each loop.
Level 5 - You don't need to put all your code in the loop.

Go on to the next page for level 6.

Contact Us
Sign in or email us at [email protected]