C Program to Find the Area of Equilateral Triangle

The Area of Equilateral Triangle can be calculated by using formulae : (sqrt(3)/4) * side * side. For example: if the Length of Side for Equilateral Triangle is 5, then the Area of Equilateral Triangle will be 10.825. The below given C program will find Area of Equilateral Triangle. Kindly check out the program to find the Area of Equilateral Triangle

Area of Equilateral Triangle Program

#include<stdio.h>

#include<math.h>

int main(){

int side;

float area;

printf("Give the Length of Side for Equilateral Triangle: ");

scanf("%d", &side);

area = (sqrt(3)/4) * side * side;

printf("



The Area of Equilateral Triangle is : %f", area);

return (0);

}

Sample Output:

Give the Length of Side for Equilateral Triangle: 5

The Area of Equilateral Triangle is : 10.825