#includeint f(int i){ if(i==1) return 1; if(i==2) return 2; return f(i-1)+f(i-2); }int main(){ printf("%d", f(24));}
你说的这个东西叫斐波那契数列。