题目描述
blablabla
样例
blablabla
#include<iostream>
using namespace std;
int main()
{
int n;
cin>>n;
int a1=0,a2=1,a;
if(n==1)cout<<a1<<" ";
if(n==2)cout<<a1<<" "<<a2<<" ";
if(n>2)
{
cout<<a1<<" "<<a2<<" ";
for(int i=3;i<=n;i++)
{
a=a1+a2;cout<<a<<" ";
a1=a2;
a2=a;
}
}
return 0;
}