예제 #1
0
        static void Main(string[] args)
        {
            abc    a1 = new abc();
            string a  = Console.ReadLine();

            a1.x = Convert.ToInt32(a);
            abc.cal(a1.x);
        }
        static void Main(string[] args)
        {
            abc    a1 = new abc();
            string a  = Console.ReadLine();

            a1.x = Convert.ToInt32(a);
            Console.WriteLine("sqr=" + abc.sqr(a1.x));
            Console.WriteLine("cube=" + abc.cube(a1.x));
        }