Sum of internal angles of a n sided polygon
= (n-2)×180∘
For a triangle, n=3 → sum of angles
= (3-2)×180∘=180∘
For a Rectangle, n=4 → sum of angles
= (4-2)×180∘=360∘
For a Pentagon, n=5 → sum of angles
= (5-2)×180∘=540∘
For a Hexagon, n=6 → sum of angles
= (6-2)×180∘=720∘
For a Septagon, n=7 → sum of angles
= (7-2)×180∘=900∘