C Program to Calculate Area of Equilateral Triangle.

 #include <stdio.h>

#include <math.h>

int main()

{

    float side,area;

   printf("enter value of side");

   scanf("%f",&side);

    area=1.732/4*(side*side);

    printf("the area of equilateral triangle is %f",area);


    return 0;

}

No comments:

Post a Comment

Programming in C Language

  PROGRAM LIST TO BECOME PRO IN C    😍😍😍            PRACTICE SETS                                                        UNIT -1  👇   IN...