0

```
#include <iostream>
using namespace std;
struct x{
int a[100];
};
struct x b[100];
int main(){
int n;
cout<<"Enter value of N: ";
cin>>n;
for(int i=0;i<n;i++){
b[i].a[0]=1;
for(int j=1;j<=i;j++){
if(i==1){
b[i].a[0]=1;
b[i].a[1]=1;
}
else
b[i].a[j]=b[i-1].a[j-1]+b[i-1].a[j];
}
b[i].a[i]=1;
}
int m=1;
int x=n;
for(i=0;i<x;i++){
for(int j=0;j<n-1;j++)
cout<<" ";
for(int k=0;k<m;k++){
cout<<b[i].a[k];
cout<<" ";
}
cout<<endl;
n--;
m++;
}
return EXIT_SUCCESS;
}
```