77
Program to find the area of an equilateral triangle
Explanation
A Triangle is having all angles of 60 degrees and congruent sides, or equiangular triangle is called Equilateral Triangle.
Area of Equilateral Triangle= ( 1.73 × a × a)/4
where a is side.
Algorithm
- Define Values for side of triangle
- Enter values in formula.
- Print the Area.
Complexity
O(1)
Solution
Python
Output:
Area of Equilateral Triangle is: 10.8125
C
Output:
Area of Equilateral Triangle is: 10.81250
JAVA
Output:
Area of Equilateral Triangle is: 10.8125
C#
Output:
Area of Equilateral Triangle is: 10.8125
PHP
Output:
Area of Equilateral Triangle is: 10.8125
Next Topic#