Пример #1
0
        static void Main(string[] args)
        {
            Factorial factorial = new Factorial();

            Console.WriteLine("The answer to 5! is: ");
            Console.WriteLine(factorial.Calculate(5));
        }
Пример #2
0
        static void Main(string[] args)
        {
            Factorial factorial = new Factorial();

            Console.WriteLine("The answer to 5! is: " + factorial.Calculate(5));

            Console.WriteLine("--------------------------------------------------------");
            Console.WriteLine("");

            Hanoi hanoi = new Hanoi();

            hanoi.moveDisc(30, 'A', 'B', 'C');
        }