Пример #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Welcome.. blah blah blah!");

            Console.Write("Enter first x value: ");
            float x1 = float.Parse(Console.ReadLine());

            Console.Write("Enter first y value: ");
            float y1 = float.Parse(Console.ReadLine());

            Console.Write("Enter second x value: ");
            float x2 = float.Parse(Console.ReadLine());

            Console.Write("Enter second y value: ");
            float y2 = float.Parse(Console.ReadLine());

            Test t = new Test();

            Console.WriteLine("Distance between points: " + Math.Round(t.dist(x1, y1, x2, y2), 3));
            Console.WriteLine("Angle between points: " + Math.Round(t.angle(x1, y1, x2, y2), 3) + " degrees");
        }