#include <iostream>
#include<iomanip>
using namespace std;
void main()
{
int *Fb=new int[20];
int *i= new int(2);
Fb[0]=Fb[1]=1;
cout<<setw(5)<<Fb[0]<<setw(5)<<Fb[1];
do
{
Fb[*i]=Fb[*i-1]+Fb[*i-2];
cout<<setw(5)<<Fb[*i];
} while(++*i<20);
delete [] Fb;
delete i;
cout<<endl;
}
第二章 2.29
最新推荐文章于 2021-07-25 16:45:30 发布