コード例 #1
0
        static void Main(string[] args)
        {
            Round round = new Round(0, 0, 2);

            Console.WriteLine(round.info() + "\n");

            Ring ring = new Ring();

            Console.Write("Введите внешний радиус кольца: ");
            ring.R = int.Parse(Console.ReadLine());
            Console.Write("Введите внутренний радиус кольца: ");
            ring.R2 = int.Parse(Console.ReadLine());
            Console.Write("Введите координаты центра кольца: \nX: ");
            ring.X = int.Parse(Console.ReadLine());
            Console.Write("Y: ");
            ring.Y = int.Parse(Console.ReadLine());
            Console.WriteLine(ring.info());


            Console.ReadKey();
        }