Esempio n. 1
0
        static void Main(string[] args)
        {
            reminder      r = new reminder();
            exceptiontest et = new exceptiontest();
            double        l, w;

            Console.WriteLine("enter the height");
            l = Convert.ToDouble(Console.ReadLine());
            Console.WriteLine("enter the width");
            w = Convert.ToDouble(Console.ReadLine());
            r.setLength(l);
            r.setWidth(w);
            Console.WriteLine("the area is {0}", r.getArea());

            factorial f = new factorial();
            int       x;

            Console.WriteLine("enter the value you want to find its factorial");
            x = Convert.ToInt32(Console.ReadLine());

            Console.WriteLine("factorial of {0} is {1}", x, f.fact(x));

            et.division(4, 3);
            Console.ReadKey();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            reminder r = new reminder();
            exceptiontest et = new exceptiontest();
            double l, w;
            Console.WriteLine("enter the height");
            l = Convert.ToDouble(Console.ReadLine());
            Console.WriteLine("enter the width");
            w = Convert.ToDouble(Console.ReadLine());
            r.setLength(l);
            r.setWidth(w);
            Console.WriteLine("the area is {0}",r.getArea());

            factorial f = new factorial();
            int x;
            Console.WriteLine("enter the value you want to find its factorial");
            x = Convert.ToInt32(Console.ReadLine());

            Console.WriteLine("factorial of {0} is {1}", x,f.fact(x));

            et.division(4,3);
            Console.ReadKey();
        }