摘要:
#include <iostream> using namespace std;int fib(int x){ if(x>=1&&x<=2) return 1; else if(x>=3) return fib(x-1)+fib(x-2);}int main(){ int i,couts=0; fo 阅读全文
posted @ 2023-04-22 21:20
几条小鱼
阅读(19)
评论(0)
推荐(0)
摘要:
#include <iostream> using namespace std;int main(){ int a,b,c,i,couts=0; a=1,b=1; cout<<a<<endl<<a<<endl; for(i=3;i<=30;i++){ c=a+b; cout<<c<<endl; a= 阅读全文
posted @ 2023-04-22 21:10
几条小鱼
阅读(22)
评论(0)
推荐(0)

浙公网安备 33010602011771号