#include <stdio.h>
main()
{
int m=1, n=6;
int i, j;
printf("%*d\n", n,1);
for (i=2; i<=n; m=1,i++)
{
printf("%*d ", (n-i+1),1);
for (j=1; j<=i-2; j++)
printf("%d ", (m=(i-j)*m/j));
printf("1\n");
}
}
main()
{
int m=1, n=6;
int i, j;
printf("%*d\n", n,1);
for (i=2; i<=n; m=1,i++)
{
printf("%*d ", (n-i+1),1);
for (j=1; j<=i-2; j++)
printf("%d ", (m=(i-j)*m/j));
printf("1\n");
}
}