Given the length of sides of an equilateral triangle, the task is to find the area and perimeter of Incircle of the given equilateral triangle.
Examples:
Input: side = 6 Output: Area = 9.4. Perimeter = 10.88 Input: side = 9 Output: Area = 21.21, Perimeter = 16.32
Properties of an Incircle are:
- The center of the Incircle is same as the center of the triangle i.e. the point where the medians of the equilateral triangle intersect.
- Inscribed circle of an equilateral triangle is made through the midpoint of the edges of an equilateral triangle.
- The Inradius of an Incircle of an equilateral triangle can be calculated using the formula:
,
where
is the length of the side of equilateral triangle. - Below image shows an equilateral triangle with incircle:
- Approach:
Area of circle =
and perimeter of circle =
, where r is the radius of given circle.Also the radius of Incircle of an equilateral triangle = (side of the equilateral triangle)/ 3.
Therefore,- The formula used to calculate the area of Incircle using Inradius is:
- The formula used to calculate the perimeter of Incircle using Inradius is:
- Program to calculate area and perimeter of equilateral triangle
- Area of Incircle of a Right Angled Triangle
- Program to calculate area of Circumcircle of an Equilateral Triangle
- Maximum count of Equilateral Triangles that can be formed within given Equilateral Triangle
- Program to find the Radius of the incircle of the triangle
- Program to calculate area and perimeter of Trapezium
- Program to calculate area and perimeter of a rhombus whose diagonals are given
- Biggest Reuleaux Triangle inscribed within a Square inscribed in an equilateral triangle
- Area of a square inscribed in a circle which is inscribed in an equilateral triangle
- Area of circle which is inscribed in equilateral triangle
- Area of Equilateral triangle inscribed in a Circle of radius R
- Maximum area of rectangle inscribed in an equilateral triangle
- Area of Circumcircle of an Equilateral Triangle using Median
- Program To Check whether a Triangle is Equilateral, Isosceles or Scalene
- Program for Area And Perimeter Of Rectangle
- Program to find the Area and Perimeter of a Semicircle
- Program to Calculate the Perimeter of a Decagon
- Calculate Volume, Curved Surface Area and Total Surface Area Of Cylinder
- Time required to meet in equilateral triangle
- Biggest Square that can be inscribed within an Equilateral triangle
C
// C program to find the area of Inscribed circle// of equilateral triangle#include <math.h>#include <stdio.h>#define PI 3.14159265// function to find area of inscribed circlefloatarea_inscribed(floata){return(a * a * (PI / 12));}// function to find Perimeter of inscribed circlefloatperm_inscribed(floata){return(PI * (a /sqrt(3)));}// Driver codeintmain(){floata = 6;printf("Area of inscribed circle is :%f\n",area_inscribed(a));printf("Perimeter of inscribed circle is :%f",perm_inscribed(a));return0;}chevron_rightfilter_noneJava
// Java code to find the area of inscribed// circle of equilateral triangleimportjava.lang.*;classGFG {staticdoublePI =3.14159265;// function to find the area of// inscribed circlepublicstaticdoublearea_inscribed(doublea){return(a * a * (PI /12));}// function to find the perimeter of// inscribed circlepublicstaticdoubleperm_inscribed(doublea){return(PI * (a / Math.sqrt(3)));}// Driver codepublicstaticvoidmain(String[] args){doublea =6.0;System.out.println("Area of inscribed circle is :"+ area_inscribed(a));System.out.println("\nPerimeter of inscribed circle is :"+ perm_inscribed(a));}}chevron_rightfilter_nonePython3
# Python3 code to find the area of inscribed# circle of equilateral triangleimportmathPI=3.14159265# Function to find the area of# inscribed circledefarea_inscribed(a):return(a*a*(PI/12))# Function to find the perimeter of# inscribed circledefperm_inscribed(a):return( PI*(a/math.sqrt(3) ) )# Driver codea=6.0print("Area of inscribed circle is :% f"%area_inscribed(a))print("\nPerimeter of inscribed circle is :% f"%perm_inscribed(a))chevron_rightfilter_noneC#
// C# code to find the area of// inscribed circle// of equilateral triangleusingSystem;classGFG {staticdoublePI = 3.14159265;// function to find the area of// inscribed circlepublicstaticdoublearea_inscribed(doublea){return(a * a * (PI / 12));}// function to find the perimeter of// inscribed circlepublicstaticdoubleperm_inscribed(doublea){return(PI * (a / Math.Sqrt(3)));}// Driver codepublicstaticvoidMain(){doublea = 6.0;Console.Write("Area of inscribed circle is :"+ area_inscribed(a));Console.Write("\nPerimeter of inscribed circle is :"+ perm_inscribed(a));}}chevron_rightfilter_nonePHP
<?php// PHP program to find the// area of inscribed// circle of equilateral triangle$PI= 3.14159265;// function to find area of// inscribed circlefunctionarea_inscribed($a){global$PI;return($a*$a* ($PI/ 12));}// function to find perimeter of// inscribed circlefunctionperm_inscribed($a){global$PI;return($PI* ($a/ sqrt(3) ) );}// Driver code$a= 6;echo("Area of inscribed circle is :");echo(area_inscribed($a));echo("Perimeter of inscribed circle is :");echo(perm_inscribed($a));?>chevron_rightfilter_noneOutput:Area of inscribed circle is :9.424778 Perimeter of inscribed circle is :10.882796
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.
Recommended Posts:
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.
- The formula used to calculate the area of Incircle using Inradius is:

