Problem 42686. What's the missing interior angle?
I'm talking about polygons... The sum of the interior angles of a triangle is 180 degrees. The sum of the interior angles of a quadrilateral is 360 degrees, and so on.
For this problem, you are given n-1 angles (in degrees) of an n-sided polygon. Please return the final angle.
Triangle examples:
>>a=missing_interior_angle([60 60]) a = 60 >>a=missing_interior_angle([45 45]) a = 90
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers89
Suggested Problems
-
2387 Solvers
-
Project Euler: Problem 1, Multiples of 3 and 5
3383 Solvers
-
Return unique values without sorting
935 Solvers
-
305 Solvers
-
289 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!