Rotate your device.
Turn off orientation lock in device settings.

Blocks
Workspace
: / 13 blocks
Actions
Math
Loops
Brushes
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.
Rotate your device.
Turn off orientation lock in device settings.
Remember back in a previous stage when we used a variable to control the number of sides in a shape? We are going to do the same thing with the counter
variable now.
This pattern starts with a triangle and adds one side at a time until it draws a decagon (10 sides). Each side should be 100 pixels long.
How will you use the counter
variable from the for
loop to recreate this drawing?