- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies

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

# C Program for Area of a square inscribed in a circle which is inscribed in a hexagon?

Given, A square that is inscribed within a circle that is inscribed in a regular hexagon and we need to find the area of the square, for that we need to find the relation of the side of square and the side of the hexagon.

The mathematical formula for the radius of circle inscribed within the hexagon is, r=A√3/2

Since, the diagonal of square is equal to diameter of the circle, so the relation between the radius and side is, a=√r

Based on the side of hexagon,

a = √3A/√2

So, Area of the Square, Area=a^{2} = (√3A/√2)^{2}

## Example

#include <stdio.h> #include <math.h> int main() { float a = 5; float area = pow((a * sqrt(3)) / (sqrt(2)), 2); printf("area = %f", area); return 0; }

## Output

area = 37.500000

- Related Articles
- Area of a square inscribed in a circle which is inscribed in a hexagon in C Program?
- Area of a square inscribed in a circle which is inscribed in an equilateral triangle in C Program?
- Area of a square inscribed in a circle which is inscribed in an equilateral triangle in C Program?
- Area of a circle inscribed in a regular hexagon?
- Biggest Reuleaux Triangle inscribed within a square which is inscribed within a hexagon in C?
- Biggest Reuleaux Triangle inscribed within a square which is inscribed within a hexagon?
- Area of a circle inscribed in a rectangle which is inscribed in a semicircle in C?
- Area of a circle inscribed in a rectangle which is inscribed in a semicircle?
- Program to calculate the area of an Circle inscribed in a Square
- Area of a triangle inscribed in a rectangle which is inscribed in an ellipse In C Program?
- Swift Program to Calculate Area of Circle Inscribed in Square
- Area of the Largest Triangle inscribed in a Hexagon in C++
- Area of circle which is inscribed in equilateral triangle in C Program?
- C++ program to find the Area of the Largest Triangle inscribed in a Hexagon?
- Biggest Reuleaux Triangle within a Square which is inscribed within a Circle in C?

Advertisements