Video: Repeat Times Block
Video Player is loading.
This is a modal window.
The media could not be loaded, either because the server or network failed or because the format is not supported.
Your browser is not supported. Please upgrade your browser to one of our supported browsers. You can try viewing the page, but expect functionality to be broken.
CS in Algebra curriculum and content is being deprecated. Within the next few months, this lab will no longer be available. Please check out Bootstrap: Algebra instead. Learn More.
This is a modal window.
Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
Hi, I'm Mark! Let's learn about loops. Using loops you can tell a computer to repeat any set of actions over and over, thousands or even billions of times.
In this puzzle, we want to make the bird move forward 5 spaces to get to the pig.
We can use the new "repeat" block to help us out.
Instead of dragging out 5 "move forward" blocks...
We can put the "move forward" block inside the "repeat" block and write a number in the block to tell it how many times to repeat.
And this is important: you can put more than one command inside a "repeat" block.
Enjoy using your new "repeat" block!