# C Program to find Area of an Isosceles Triangle

Write a C Program to Find the Area of an Isosceles Triangle with example. The isosceles triangle has two equal lengths. First, we ask about that length and the other length. Then, we use the math formula to calculate the area of an isosceles triangle.

```#include <stdio.h>
#include <math.h>

int main()
{
float a, b, IsoArea;

// Enter the Same Sides length
printf("Enter Isosceles Triangle Length of a Side = ");
scanf("%f",&a);

printf("Enter Isosceles Triangle Other Side = ");
scanf("%f",&b);

IsoArea = (b * sqrt((4 * a * a) - (b * b)))/4;

printf("The Area of the Isosceles Triangle = %.3f\n", IsoArea);

return 0;
}```

C Program to Find the Area of an Isosceles Triangle using functions.

```#include <stdio.h>
#include <math.h>

float IsoscelesArea(float a, float b)
{
return (b * sqrt((4 * a * a) - (b * b)))/4;
}
int main()
{
float a, b, IsoArea;

printf("Enter Isosceles Triangle Length of a Side = ");
scanf("%f",&a);

printf("Enter Isosceles Triangle Other Side = ");
scanf("%f",&b);

IsoArea = IsoscelesArea(a, b);

printf("The Area of the Isosceles Triangle = %.3f\n", IsoArea);

return 0;
}```
``````Enter Isosceles Triangle Length of a Side = 15
Enter Isosceles Triangle Other Side = 9
The Area of the Isosceles Triangle = 64.391``````