public static void Main()
Console.WriteLine("Enter the base of the triangle");
base_triangle=Convert.ToDouble(Console.ReadLine());
Console.WriteLine("Enter the height of the triangle");
height_triangle=Convert.ToDouble(Console.ReadLine());
area=0.5*base_triangle*height_triangle;
Console.WriteLine("The area of the triangle is {0}",area);