#include"stdio.h"
int main()
{
int a[100][100],i,j,x,n;
printf("输出n组:n=");
scanf("%d",&n);
for(i=0;i<n;i++)
for(j=0;j<=i/2;j++){
if(j==0)
a[i][j]=1;
else
a[i][j]=a[i-1][j-1]+a[i-1][j];
a[i][i-j]=a[i][j];
}
for(i=0;i<n;i++){
for(j=0;j<n-i-1;j++)
printf(" ");
for(j=0;j<=i;j++)
printf("%d ",a[i][j]);
printf("
");
}
return 0;
}