示例#1
0
        static void Main(string[] args)


        {
            string option = "";

            do
            {
                Console.WriteLine("Welcome to the Factorial Calculation");
                Console.WriteLine("Enter an integer that's  greater than 0 but less  than 10:");
                int fact_input = int.Parse(Console.ReadLine());


                Class1 fact1 = new Class1();
                Console.WriteLine("The factorial of   " + fact_input + "  is  " + fact1.factCalculator(fact_input));

                Console.WriteLine("y/n");
                option = Console.ReadLine();
            } while (option == "y");
        }