Programmers and engineers point of view.
I'm a programmer and just made a formula to compute a shapes total internal angles using n = number of angles of shape: $(360-(\frac{360}{n}+180))n$.
I arrived with my formula by assuming all point of shapes are derived from a combination of 360=180+externalAngle+internalAngles where the sum of externalAngles = 360
An engineer suggested: $180(n-2)$
How do I prove they are same? Preferred solution in algebra, if possible.
$(360-(\frac{360}{n}+180))n=360n-360-180n=180n-360=180(n-2)$