- Related Questions & Answers
- Program to calculate Area Of Octagon
- Program to calculate area and perimeter of Trapezium
- Program to calculate the area of a Tetrahedron
- Java Program to calculate area of a Tetrahedron
- Program to calculate area and perimeter of equilateral triangle
- Program to calculate area and volume of a Tetrahedron
- Python Program to calculate the area of a Tetrahedron
- Program to calculate area of Circumcircle of an Equilateral Triangle
- Program to calculate area of Circumcircle of an Equilateral Triangle in C++
- Program to calculate area and perimeter of equilateral triangle in C++
- Program to calculate the area of an Circle inscribed in a Square
- Program to calculate the area between two Concentric Circles in C++?
- Java Program to calculate the area of a triangle using Heron's Formula
- How to Calculate the Area of a Triangle using Python?
- Calculate difference between circumference and area of a circle - JavaScript

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

An enneagon also known as nonagon is a polygon with 9 sides. To calculate the area of enneagon the following formula is used,

Area of ennagon = ((a^{2}*9) / 4*tan (20°)) ∼= (6.18 * a2)

Code Logic, The area of a polygon with nine sides is calculated by using the formula, ((a^{2}*9) / 4*tan (20°)) ∼= (6.18 * a2). The value 6.18 is filled into a float variable called multiplier, this value then multiplied by the square of side of enneagon.

#include <stdio.h> #include <math.h> int main(){ int a = 6; float area; float multiplier = 6.18; printf("Program to find area of Enneagon \n"); printf("The side of the Enneagon is %d \n", a); area = (6.18 * a * a); printf("The area of Enneagon is %f \n", area); return 0; }

Program to find area of Enneagon The side of the Enneagon is 6 The area of Enneagon is 222.479996

Advertisements