Regular Polygon Generator Revisited. Press flag to draw polygons. When prompted enter number of sides for first polygon. The program will continue to draw polygons with one less side until it reaches a 3 sided polygon (a triangle).