Answers for "Sum of Polygon Angles in javascript"

0

Sum of Polygon Angles in javascript

// Find the Sum of Polygon Angles 
sumPolygon = (n) => (n - 2) * 180

sumPolygon(4) // returns 360
sumPolygon(3) // returns 180
Posted by: Guest on July-01-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language