Given the P, B and H are the perpendicular, base and hypotenuse respectively of a right angled triangle. The task is to find the area of the incircle of radius r as shown below:
Input: P = 3, B = 4, H = 5
Input: P = 5, B = 12, H = 13
Approach: Formula for calculating the inradius of a right angled triangle can be given as r = ( P + B – H ) / 2.
And we know that the area of a circle is PI * r2 where PI = 22 / 7 and r is the radius of the circle.
Hence the area of the incircle will be PI * ((P + B – H) / 2)2.
Below is the implementation of the above approach:
- Program to calculate the Area and Perimeter of Incircle of an Equilateral Triangle
- Area of Circumcircle of a Right Angled Triangle
- Find all sides of a right angled triangle from given hypotenuse and area | Set 1
- Number of possible pairs of Hypotenuse and Area to form right angled triangle
- Program to find the Radius of the incircle of the triangle
- Find the dimensions of Right angled triangle
- Check whether right angled triangle is valid or not for large sides
- Area of Reuleaux Triangle
- Program to find area of a triangle
- Check if right triangle possible from given area and hypotenuse
- Area of a triangle inside a parallelogram
- Find the altitude and area of an isosceles triangle
- Check if a triangle of positive area is possible with the given angles
- Area of circle which is inscribed in equilateral triangle
- Minimum height of a triangle with given base and area