コード例 #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Введите любое число");
            string a      = Console.ReadLine();
            int    height = int.Parse(a);

            Console.WriteLine("Введите второе любое число");
            string    b         = Console.ReadLine();
            int       width     = int.Parse(b);
            Rectangle Big       = new Rectangle(height, width);
            double    area      = Big.AreaCalculator();
            double    perimeter = Big.PerimeterCalculator();

            Console.WriteLine(area);
            Console.WriteLine(perimeter);
            Console.ReadLine();

            //Big.SetHeight(7);

            //height = Big.GetHeight();
            double hie = Big.Height;
        }