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)
Input:
side (a) = 5
Output:
Area of Equilateral Triangle = ( 1.73 * a * a) / 4
= ( 1.73 * 5 * 5) / 4
= 10.81250
Python
Output:
C
Output:
JAVA
Output:
C#
Output:
PHP
Output: