1
11
112
11235
112358

#include<iostream.h>
#include<conio.h>
void main()
{
int a, b,c,r,p=0,n=1;
clrscr();
cout<<"Enter number of line";
cin>>a;
for(b=1;b<=a;b++)
{
cout<<1<<"\t";
for(c=1;c<b;c++)
{
r=p+n;
p=n;
n=r;
cout<<r<<"\t";
}
cout<<endl;
n=1;
p=r=0;
}
getch();
}