3.2 Draw a pentagon (with a loop)

Scratch solution

View solution

This is just one of many possible solutions:

whenclickedcleargotox:0y:0pendownrepeat5move100stepsturn72degreeswait1secspenup

Back to programming challenge

Extra Challenge

Extra challenge #1: Write a program that takes the length of a side of a pentagon as the input, draws the pentagon with the given side and displays its perimeter as the output.