这是课本上的习题,学生必做的内容#include #define N 10int main(){ int i,j,a[N][N]; for(i=0;i {a[i][i]=1; a[i][0]=1; } for(i=2;i for (j=1;j<=i-1;j++) a[i][j]=a[i-1][j-1]+a[i-1][j]; for(i=0;i {for (j=0;j<=i;j++) printf("%6d",a[i][j]); printf("\n"); } printf("\n"); return 0;}