staticvoidMain(string[]args) { while(true) { Console.Write("请输入楼梯次数:"); intn=int.Parse(Console.ReadLine()); Console.WriteLine("楼梯的总的走法为{0}",upstair(n)); Console.ReadKey();