#2
zklhp2013-10-04 15:16
|
#include <stdio.h>
int main(int argc,char **argv)
{
int i,j,a[11][11];
for(i = 1 ; i <= 10 ; i++)
{
for (j = 1 ; j <= i ; j++)
{
a[i][1] = 1;
a[i][i] = 1;
a[i+1][j+1] = a[i][j] + a[i][j+1];
printf("%d ",a[i][j]);
}
printf("\n");
}
return 0;
}