You can put this solution on YOUR website! Use this formulas
1. –
and
2.
to find number of non-intersecting (formula 1.) and intersecting (formula 2.) diagonals
if
you have
if you are counting non-intersecting diagonals, will be diagonals
– = non-intersecting diagonals
if you are counting intersecting diagonals,will be intersecting diagonals