Question: C# program help Given an n - sided regular polygon n , return the total sum of internal angles ( in degrees ) . n

C# program help
Given an n-sided regular polygon n, return the total sum of internal angles (in degrees).
n will always be greater than 2.
The formula (n-2)180 gives the sum of all the measures of the angles of an n-
sided polygon.
Define Main Structure: Create a class with a method SumPolygon
The SumPolygon method should accept one int as an argument and then return a
value based on the formula above. Examples:
SumPolygon(3)180
SumPolygon (4)360
SumPolygon(6)720
Use the console to test input as a command line argument or hard code ints
C# program help Given an n - sided regular

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!