You have 2 kind of SUM, either the interior angles or the exterior's.
For the interior angles, if n is the number of sides then
sum of all INTERIOR angles =(n-1).180°
Regarding the EXTERIOR angles, whatever is the number of sides, the sum of all EXTERIOR angles = always 360°