DEBUGGING 4: This program does not work the way we want it to! It has a logic error and we need to fix it!

RULE: Remember, if we want an if-statement to occur WITHIN a loop, we need to indent it.

  • Click Run and look at the stage to see what's wrong.
  • Debug the program so the blue shapes are also sorted.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE