Blazing goIITian
Select a point in nC1=n ways
now from each point we cannot draw a diagonal to 3 points... 2 points adjacent to it and the point itself
so n-3 such diagonals r there
also..each diagonal has 2 endings so it is counted twice
so D=n(n-3)/2