VARIABLES & LOOPS: Changing variables inside loops is a useful way to make patterns!

  • Click Run. Notice that the shapes on the stage are not spaced out evenly like in the answer image.
  • Fix the program by only editing the incrementation values that come after the += and -= operators in each loop!
  • This program should make 2 ellipses, 3 rectangles, 4 triangles, 5 circles, and 6 squares that do not overlap at all.
  • Note: The green circles are already completed for you. Use their spacing to help figure out the other shapes!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)