Search: | |||||

| ||||

Home » Forum » C Programming | RSS Feeds |

Write a c program which calculates the area of a regular polygon.

[Hint: Area = (a x p)/2, where a=(s/2) x cot(1800/n) and p=(s x n)]

(a is the length of the apothem, p is the perimeter of the polygon, s is the length of each side of polygon, n is the no of sides)

NB:

• Apothem is the line segment from the center of a regular polygon to the midpoint of a side.

• Apothem and perimeter should be in separate functions.

Didn't find what you were looking for?
Find more on calculating area of a regular polygon
Or get search suggestion and latest updates.

Related Topics:

- calculate area
- calculate exeuction time
- calculate Mean
- calculate age
- Calculate pH of Rainwater
- calculating 'names' of text boxes in a form
- To calculate the time difference between two days
- Calculating Time in parts of an hour
- Calculating values in VB
- 2003 - ActiveSheet.Calculate Problem
- Calculate fields (Pivot Tables)
- Convert string like "=123+456+789" to Long and then calculate
- Calculating Ratios
- Calculate Total Sum
- How to calculate IRR
- write a program that enters double data into an ArrayList and calculate the total
- Excel won't calculate my function
- Easier method to capture & paste calculated value?
- Calculating the no. of containers
- Calculating duration
- Convert string like "=123+456+789" to Long and then calculate
- Application.Calculate fails
- returning the address of a highlighted area
- Can we Use Excel as a regular database?
- Areas Collection Question