Exemplo n.º 1
0
        public static void Main(string[] args)
        {
            Console.WriteLine("Класс Ring (Кольцо)");
            Ring x = new Ring();
            x.insert();
            double s = x.Pl();
            Console.WriteLine("Площадь кольца s={0}", s);
            double width = x.width();
            Console.WriteLine("Толщина кольца width={0}", width);
            int q = x.quarters();
            Console.WriteLine("Количество квандрантов, в которых присутствует кольцо q={0}", q);
            Console.ReadKey(true);

        }
Exemplo n.º 2
0
 public RingProvider(Ring ring)
 {
     _ring = ring;
 }