#include
using namespace std;
int main() {
int t1=0,t2=1,nextterm;
int i,n;
cin>>n;
cout<<“fibbonaci series is\n”;
cout<<t1<<endl;
for(i=1;i<n;i++)
{for(int j=0;j<=i;j++)
{
if((i==1)&&(j==0))
{
cout<<t2<<" ";
continue;}
nextterm=t1+t2;
cout<<nextterm<<" ";
t1=t2;
t2=nextterm;
}cout<<endl;
}
}