2nd way: Number of diagonals of a n-sided polygon =n(n-3)/2