int a,b;a=b=1;int c;if(n==1||n==0)return 1;elsewhile(--n>0){ c=a+b; a=b; b=c;}return c;}};
转载于:https://www.cnblogs.com/huxiangang/p/6522786.html