Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("VVEDIT COORDYNATY (Ax, Ay, Bx, By) : ");

            double Ax = Convert.ToDouble(Console.ReadLine());
            double Ay = Convert.ToDouble(Console.ReadLine());
            double Bx = Convert.ToDouble(Console.ReadLine());
            double By = Convert.ToDouble(Console.ReadLine());

            Rectangle rectangle = new Rectangle(Ax, Ay, Bx, By);

            Console.WriteLine(rectangle.CalcP());
            Console.WriteLine(rectangle.CalcS());

            rectangle.CalcP();
            rectangle.CalcS();

            Console.ReadLine();
        }