Choose two of ten vertices and you have drawn a line, and there are 10 × 9 / 2 = 45 such pairs — the handshake count, on the second link. Ten of those lines are the sides of the polygon, so the diagonals are 45 − 10 = 35, which is what n(n − 3)/2 computes in one step: each vertex reaches the seven vertices that are neither itself nor its two neighbours, and 10 × 7 is halved because every diagonal has two ends.
The same decagon is where Euclid put the golden ratio. Elements IV.10 constructs the isosceles triangle with angles 72-72-36 because it is the one the decagon needs, and in a circle of radius R the decagon's side is 2R sin 18°; since 2 sin 18° = 1/φ, the ratio of radius to side is exactly φ = 1.6180339887499, the number the pentagon page on this site reads off a cosine. Cut the decagon into triangles from one vertex and you get eight of them, so the interior angles sum to (10 − 2) × 180 = 1440° — the third link — which is 144° each, with a 36° turn at every corner.
Answer
35
How to read it
10 × 7 / 2 on the workbench. The second link is the uncorrected 45 pairs and the third the interior-angle sum.
Source
The diagonal count n(n − 3)/2 for a convex n-gon; Euclid, Elements IV.10 constructs the regular decagon in a circle through the 72-72-36 golden triangle
Work it in the calculator
These links open the right calculator with this problem's numbers already typed in. The line above is what the screen should show — check it yourself.