コード例 #1
0
ファイル: Ring.cs プロジェクト: Bryule/xt_net_web
        public static void RingShow()
        {
            Console.WriteLine("Введите первый радиус: ");
            int Radius = Int32.Parse(Console.ReadLine());

            Console.WriteLine("Введите второй радиус: ");
            int Second = Int32.Parse(Console.ReadLine());

            Console.WriteLine("Введите X: ");
            int Absciss = Int32.Parse(Console.ReadLine());

            Console.WriteLine("Введите Y: ");
            int Ordinata = Int32.Parse(Console.ReadLine());

            Ring f = new Ring(Second, Radius, Absciss, Ordinata);

            Console.WriteLine("Длина:  " + f.Length());
            Console.WriteLine("Площадь кольца: " + f.Area());
        }