#include<stdio.h>
#include<math.h>
main()
{
int side;
float area;
printf("\nEnter the Length of Side : ");
scanf("%d",&side);
area = (sqrt(3) / 4)* side * side ;
printf("\nArea of Equilateral Triangle : %f\n",area);
}
#include<math.h>
main()
{
int side;
float area;
printf("\nEnter the Length of Side : ");
scanf("%d",&side);
area = (sqrt(3) / 4)* side * side ;
printf("\nArea of Equilateral Triangle : %f\n",area);
}
No comments:
Post a Comment