C# program to find Area of Isoceles Triangle
Program
using System;
namespace AreaOfIsocelesTriangle
{
class Program
{
static void Main(string[] args)
{
Console.Write("Enter the Length of Same Side:\t");
float a = float.Parse(Console.ReadLine());
Console.Write("Enter the Length of other Side:\t");
float b = float.Parse(Console.ReadLine());
//float root = (float)Math.Sqrt(3) / 4;
float area= (float)((b/4)*Math.Sqrt((4*a*a)-(b*b)));
Console.WriteLine("Area of Isosceles Triangle is:\t" + area);
}
}
}
Output
Enter the Length of Same Side: 13
Enter the Length of other Side: 16
Area of Isosceles Triangle is: 81.97561