#include int fun(int n){if(n==1 || n==2)return 1;elsereturn fun(n-1) + fun(n-2);}int main(void){int n,i=0;printf("请输入年:");scanf("%d",&n);if(n>=1)for(i=0;iprintf("Fibonacci数列的第%3d项是:%d\n",i+1,fun(i+1));elseprintf("输入错误!请重新输入......\n");return 0;}