- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP

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

A Hexagon is a closed figure of 6 side and a regular hexagon is the one which has all six sides equal and angle equal. For finding the area of hexagon, we are given only the length of its diagonal i.e d.

The interior angles of Hexagon are of 120 degrees each and the sum of all angles of a Hexagon is 720 degrees.

The formula to find the area of hexagon with side length a,

Area = (3a^{2}√3) / 2.

Since all sides are of same size and angle is 120 degrees,

d = 2a or a = d/2

By putting the value of a in the form of d we get area in terms of d,

2 √3 ) / 8

#include <stdio.h> #include<math.h> int main() { float d = 10; float area = (3 * sqrt(3) * pow(d, 2)) / 8; printf("Area of hexagon = %f",area); return 0; }

Area of hexagon = 64.951904

- Related Questions & Answers
- C Program for area of hexagon with given diagonal length?
- Find length of Diagonal of Hexagon in C++
- Diagonal of a Regular Hexagon in C++ Program
- Area of a square from diagonal length in C++
- Diagonal of a Regular Hexagon in C++?\n
- Area of a n-sided regular polygon with given side length in C++
- C++ program to find the Area of the Largest Triangle inscribed in a Hexagon?
- Area of the Largest Triangle inscribed in a Hexagon in C++
- Area of a circle inscribed in a regular hexagon?
- Area of a square inscribed in a circle which is inscribed in a hexagon in C Program?
- Area of a n-sided regular polygon with given Radius in C Program?
- C Program for Area of a square inscribed in a circle which is inscribed in a hexagon?
- C program to interchange the diagonal elements in given matrix
- Maximum area of rectangle possible with given perimeter in C++
- Program to convert given Matrix to a Diagonal Matrix in C++

Advertisements