How to find out the area of a Equilateral Triangle.

 #include <stdio.h>

#include <stdlib.h>


int main(){

    int side;

    float Area;

    printf("enter the value of side : \n");

    scanf("%d",&side);


    Area = ((float)(sqrt(3)/4)*side*side);

    printf("Area of an Equilateral Triangle : %.2f \n",Area);

    return 0;

}


Comments