Tux Education Our New Education Channel Please Share And Subscribe It...

/* Find Area Of Equilateral Triangle */



// Compiler : Dev-C++ 4.9.9.2


#include<stdio.h>

#include<math.h>

int main()

{
    float a;
    float area;

    printf("Enter Size Of Side Of The Equilateral Triangle : ");

    scanf("%f",&a);

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


    printf("\n\nArea Of Equilateral Triangle Is: %.3f",area);

    
    getch();
    return 0;
}

Post a Comment