Calculate the interior and exterior angles of a polygon using the number of sides.
Enter the number of sides to calculate the sum of interior angles and individual angles of a regular polygon.
For a polygon with \( n \) sides:
\[ \text{Sum of Interior Angles} = (n - 2) \times 180^\circ \]
\[ \text{Each Interior Angle (Regular Polygon)} = \frac{(n - 2) \times 180^\circ}{n} \]
\[ \text{Each Exterior Angle (Regular Polygon)} = \frac{360^\circ}{n} \]
For example, a pentagon (\( n = 5 \)) has a sum of interior angles of \( (5 - 2) \times 180^\circ = 540^\circ \), each interior angle of \( 108^\circ \), and each exterior angle of \( 72^\circ \).