public static void Main(string[] args)
Console.WriteLine("AREAS OF VARIOUS GEOMETRICAL SHAPE.");
Console.WriteLine("-----------------------------------");
Console.WriteLine("SELECT AN OPTION:");
Console.WriteLine("[1] AREA OF CIRLCE \n[2] AREA OF RECTANGLE \n[3] AREA OF TRIANGLE");
Console.Write("Please Enter your option: ");
input = Console.ReadLine();
if (Int32.TryParse(input, out option) == true)
Console.Write("NEGATIVE NUMBER IS NOT ALLOWED!, PLEASE TRY AGAIN!");
Console.Write("INVALID INPUT, PLEASE SELECT FROM OPTION 1-3");
Console.Write("Enter the radius of the Circle: ");
inputRadius = Console.ReadLine();
if (Int32.TryParse(inputRadius, out radius ) == true)
Console.Write("Negative number is not allowed!");
cArea = (3.1416 * (radius * radius));
Console.Write("The Area of Cirlce is {0:#,0.0000}.", cArea);
Console.Write("LETTER IS NOT ALLOWED!");
Console.Write("Enter the Length of the Rectangle: ");
inputLength = Console.ReadLine();
if (Int32.TryParse(inputLength, out length) == true)
Console.Write("Negative number is not allowed!");
Console.Write("Enter the width of the Rectangle: ");
inputWidth = Console.ReadLine();
if (Int32.TryParse(inputWidth, out width) == true)
Console.Write("Negative number is not allowed!");
Console.Write("The Area of Reactangle is {0:#,0.0000}.", rArea);
Console.Write("LETTER IS NOT ALLOWED!");
Console.Write("LETTER IS NOT ALLOWED!");
Console.Write("Enter the base of the triangle: ");
inputBase = Console.ReadLine();
if (Int32.TryParse(inputBase, out tBase) == true)
Console.Write("Negative number is not allowed!");
Console.Write("Enter the height of the Triangle: ");
inputHeight = Console.ReadLine();
if (Int32.TryParse(inputHeight, out height) == true)
Console.Write("Negative number is not allowed!");
tArea = tBase * height / 2;
Console.Write("The area of the triangle is {0:#,0.0000.}", tArea);
Console.Write("LETTER IS NOT ALLOWED!");
Console.Write("LETTER IS NOT ALLOWED!");
Console.WriteLine("LETTER IS NOT ALLOWED, PLEASE CHOOSE FORM OPTION 1-3");