示例#1
0
 static void Main(string[] args)
 {
     {
         int    n   = int.Parse(Console.ReadLine());
         NonRec Not = new NonRec();
         Console.WriteLine("Without recursion:/n");
         Not.NoRec(n);
         Console.WriteLine("With recursion:/n");
         Console.WriteLine(With.Rec(n));
         Console.ReadLine();
     }
 }
		static void Main(string[] args)
		{
			{

				int n = int.Parse(Console.ReadLine());
				NonRec Not = new NonRec();
				Console.WriteLine("Without recursion:/n");
				Not.NoRec(n);
				Console.WriteLine("With recursion:/n");
				Console.WriteLine(With.Rec(n));
				Console.ReadLine();

			}
		}