This program can roll any regular polygon by changing the value of n with the first set command. Unlike the programs to draw a square, we don't already know the angle that to increment the value of variable h inside of the loop; we have to calculate it using a formula. Using a variable to hold the increment angle keeps the code cleaner.
Block Types: Movement, Variables, Lights, Operators