long f(int y)
{ if(y= =1|| y= =2)
return 1;
else
return f(y-1)+f(y-2);
}
main( )
{ long x,long f(int y);
x=f(4);
printf(“f(4) is %ld\n”,x);
}
请问这个最后执行出来f(4)是多少
#include "stdio.h"
void main() { int n,a=1,b=1,c,i; printf("输入n(>2):"); scanf("%d",&n); for(i=3;i<=n;i++) { c=a+b; a=b;b=c; } printf("%d\n",c);
}