Console.WriteLine("select anyone");
Console.WriteLine("press 1 for area of triangle");
Console.WriteLine("press 2 for area of rectangle");
Console.WriteLine("press 3 for exit");
int num=Convert.ToInt32(Console.ReadLine());
Console.WriteLine("terminated");
{ Console.WriteLine("provide base and height for the triangle");
int b=Convert.ToInt32(Console.ReadLine());
int h=Convert.ToInt32(Console.ReadLine());
{ Console.WriteLine("provide the lenght and breadth");
int l=Convert.ToInt32(Console.ReadLine());
int b=Convert.ToInt32(Console.ReadLine());
public static void Main()