- 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

# Area of Incircle of a Right Angled Triangle in C Program?

To find the area of a circle inside a right angled triangle, we have the formula to find the radius of the right angled triangle, r = ( P + B – H ) / 2.

Given the P, B and H are the perpendicular, base and hypotenuse respectively of a right angled triangle.

Area of a circle is given by the formula,

Area = π*r^{2}

where π = 22 / 7 or 3.14 and r is the radius of the circle.

Hence the area of the incircle will be given by the formula,

Area = π* ((P + B – H) / 2)^{2}.

## Example

#include #define PI 3.14159265 int main() { float area,P = 3, B = 4, H = 5; area=(P + B - H) * (P + B - H) * (PI / 4); printf("Area = %f", area); return 0; }

## Output

Area = 3.141593

- Related Questions & Answers
- Area of Circumcircle of a Right Angled Triangle in C Program?
- Area of Circumcircle of a Right Angled Triangle?
- Find the dimensions of Right angled triangle in C++
- Find the Number of Possible Pairs of Hypotenuse and Area to Form Right Angled Triangle using C++
- Program to calculate the Area and Perimeter of Incircle of an Equilateral Triangle What is Equilateral Triangle in C?
- Find the hypotenuse of a right angled triangle with given two sides in C++
- C++ program to find the Radius of the incircle of the triangle
- Python program to find angle between mid-point and base of a right angled triangle
- Area of a triangle inside a parallelogram in C++
- Area of Reuleaux Triangle?
- Find the area and perimeter of right triangle in PL/SQL
- C++ Program to Compute the Area of a Triangle Using Determinants
- Java program to find the area of a triangle
- Program to calculate area of Circumcircle of an Equilateral Triangle in C++
- Program to calculate area and perimeter of equilateral triangle in C++

Advertisements