No JavaScript support?
Triangle
3
0
0
square
4
4
pentagon
5
4
4
hexargon
6
octgon
pentagon
8
7
7