这个程序有段错误,核心已經存储。求指点
#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;
}