int method(int i)
{
if (i == 1 || i==2) return 1;
else return method(i-1) + method(i - 2);
}
int method(int i)
{
if (i == 1 || i==2) return 1;
else return method(i-1) + method(i - 2);
}
转载于:https://www.cnblogs.com/dashi/archive/2013/04/09/4034661.html