#include <iostream>
using namespace std;
int main()
{
int a,b=1,c=0;
cout<<c<<" "<<b<<" ";
for(int i=2;i<=20;i++)
{
a=b+c;
c=b;
b=a;
cout<<a<<" ";
if(i%5==0)
cout<<endl;
}
system("pause");
return 0;
}
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.241.88