How to find area of equilateral triangle in C C++ language

A triangle is said to equilateral triangle if its all three sides are equal and its all three angles at the same degree '60 degree'. User just need to find length of its one side and area will be calculated easily.
C Code



C++ Code


Working of Program:

When the above code is compiled and executed user needs to input length of one side.In the next line formula will be applied and result will be stored in area variable.And finally result will be displayed to the user.
Output:
Reactions

Post a Comment

0 Comments