Computer Science, asked by fatimakhan5109, 2 months ago

The area of an equilateral triangle is ¼(√3a2) where "a" represents a side of the triangle. You are provided with the side "a". Find the area of the equilateral triangle using javascript

Answers

Answered by adityaprakash1266
6

Answer:

gshf igildkyzv.xgk,v,gkdkgzgkgzmgflhd

Explanation:

znzjtairaitzoydlhcfupdyjzkgdlgsitdlhchlfjfzktxgkdoyxyodoyohwikslemdodmdo

Answered by smajaas
3

Answer:

areaTriangle()

{

   let area, side;

   side =+userInput[0];

   area = Math.sqrt(3)/4*side*side;

   console.log(+area);

}

areaTriangle();

Explanation:

I tried using function key.

1. declared area and side variables.

2. get Input from user.

3. applied formula

4. Print the output

Similar questions