Green flag and see.
The variable "n" indicates how many sides, and the variable 'diagonals' indicates how many diagonals. Diagonals=n*(n-3)/2 http://scratch.mit.edu/projects/2934261/