爬楼梯: 树老师爬楼梯,他可以每次走1级或者2级,输入楼梯的级数,求不同的走法数。 #include <stdio.h> #include <string.h> int stair(int n){ if(n==1)