General Method to draw a regular polygon

How to draw a regular polygon (General Method given the measurement of one side). 
Click on the video.