C# program to find Area of Equilateral Triangle
Program
using System;
namespace AreaOfEquilateralTriangle
{
class Program
{
static void Main(string[] args)
{
Console.Write("Enter the Length of Side:\t");
float side = float.Parse(Console.ReadLine());
float root = (float)Math.Sqrt(3) / 4;
float area = root * side * side;
Console.WriteLine("Area of Equilateral Triangle is:\t" + area);
}
}
}
Output
Enter the Length of Side: 9
Area of Equilateral Triangle is: 35.07403