#include <stdio.h>
int main(int argc, const char *argv[])
{
int a[10][10] = {0};
int i,j;
for(i=0;i<10;i++){
a[i][0] = 1;
//if(i==0) continue;
for(j=1;j<=i; j++){
a[i][j] = a[i-1][j-1]+a[i-1][j];
}
}
for(i=0; i<10; i++){
for(j=0; j<=i; j++){
printf("%d\t",a[i][j]);
}
puts("");
}
return 0;
}