Polygons

Starting with the following trinket can you draw a simple square and hexagon?

Can you write a program that asks for the number of sides, and dependent on your answer, produces a drawing like this:

Leave a Reply

Your email address will not be published. Required fields are marked *