#include<iostream>
using namespace std;
int main()
{ int first=0,second=1,i,third,n;
cout<<"Upto which number u want to find out fibonacci series ?""\n";
cin>>n;
cout<<"The fibonacci series of "<<n<<" is"<<"\n"<<first<<"\n"<<second<<"\n";
for(i=1;i<n;i++)
{
third=first+second;
cout<<third<<"\n";
first=second;
second=third;
}
system("pause");
return 0;
}