Javatpoint Logo
Javatpoint Logo

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

  1. Define Values for side of triangle
  2. Enter values in formula.
  3. 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#




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA