Ejemplo n.º 1
0
        public static void Main(string[] args)
        {
            CircleCube obj = new CircleCube();
            double     Radius;
            int        Side;

            Console.WriteLine("Enter the radius of the circle");
            Radius = Convert.ToDouble(Console.ReadLine());
            obj.calcArea(Radius);

            Console.WriteLine("Enter the side of the cube");
            Side = Convert.ToInt32(Console.ReadLine());
            obj.calcVolume(Side);

            Console.ReadLine();
        }
Ejemplo n.º 2
0
        public static void Main(string[] args)
        {
            CircleCube obj = new CircleCube();
              double Radius;
              int Side;

              Console.WriteLine("Enter the radius of the circle");
              Radius = Convert.ToDouble(Console.ReadLine());
              obj.calcArea(Radius);

              Console.WriteLine("Enter the side of the cube");
              Side = Convert.ToInt32(Console.ReadLine());
              obj.calcVolume(Side);

            Console.ReadLine();
        }