document.write( "Question 57951: How do I find the formula for the number of diagonals in a polygon with \"n\" sides? \n" ); document.write( "
Algebra.Com's Answer #39612 by stanbon(75887)\"\" \"About 
You can put this solution on YOUR website!
Every two vertices determines a line.
\n" ); document.write( "A polygon of n sides has n vertices.
\n" ); document.write( "There are nC2=[n(n-1)]/2 lines determined.
\n" ); document.write( "But n of the lines are sides of the polygon.
\n" ); document.write( "So there are nC2 - n diagonals in an n-sided polygon.
\n" ); document.write( "Example:
\n" ); document.write( "A pentagon has 5 vertices; it has 5C2 - 5 = [5*4]/2 - 5
\n" ); document.write( "=10-5 = 5 diagonals.
\n" ); document.write( "Hope this helps.
\n" ); document.write( "Cheers,
\n" ); document.write( "Stan H.
\n" ); document.write( "
\n" );