public static void Main()
Console.WriteLine("Area of Various Geometrical Shape");
Console.WriteLine("Select an option\n[1] Area of Circle\n[2] Area of Rectangle\n[3] Area of Triangle");
Console.Write("Enter your Option: ");
input = Console.ReadLine();
if (Int32.TryParse(input, out option) == true)
Console.WriteLine("INVALID NEGATIVE NUMBER.");
Console.Write("Enter Your Radius: ");
Radius = Console.ReadLine();
if (Int32.TryParse(Radius, out radius) == true)
Console.WriteLine("NEGATIVE OR ZERO IS NOT VALID");
a = (radius * radius) * 3.1416;
Console.WriteLine("The Area Of the Circle is {0:3,0.0000}", a);
Console.WriteLine("INVALID RADIUS.");
Console.Write("Enter The Length of Rectangle: ");
len = Console.ReadLine();
if (Int32.TryParse(len, out length) == true)
Console.WriteLine("NEGATIVE OR ZERO IS NOT VALID");
Console.WriteLine("Enter The Width of Rectangle: ");
wid = Console.ReadLine();
if (Int32.TryParse(wid, out width) == true)
Console.WriteLine("NEGATIVE OR ZERO IS NOT VALID");
perimeter = (length * 2) + (width * 2)
Console.WriteLine("The Perimeter of Rectangle is {0:3,0.0000}", perimeter);
Console.Write("INVALID NUMBER FOR WIDTH.");
Console.Write("INVALID NUMBER FOR LENGTH");
Console.Write("Enter Base : ");
Base = Convert.ToDouble(Console.ReadLine());
Console.Write("Enter Height 2 : ");
Height = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("The Area of Triangle is {0:#,0.0000}", a);
Console.WriteLine("Invalid Input.");