2.29

来源:互联网 发布:网上商城的软件过程 编辑:程序博客网 时间:2024/05/19 03:43
#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
int f1=1,f2=2;
for(int t=1;t<=10;t++)
{
cout<<setw(12)<<f1<<setw(12)<<f2;
if(t%2==0)
cout<<endl;
f1=f1+f2;
f2=f2+f1;
}
return 0;
}
0 0
原创粉丝点击