示例#1
0
        static void Main(string[] args)
        {
            Console.WriteLine("This program reads sides of triangle from the console and outputs information about it.\n");
            Console.Write("Enter side A coordinate of the round: ");
            double a = double.Parse(Console.ReadLine());

            Console.Write("Enter side B coordinate of the round: ");
            double b = double.Parse(Console.ReadLine());

            Console.Write("Enter side C coordinate of the round: ");
            double c = double.Parse(Console.ReadLine());

            Triangle triangle = new Triangle(a, b, c);

            triangle.ShowInfo();

            Console.WriteLine("\n\nEnd of program. Press any key.");
            Console.ReadKey();
        }