for (i = 0; i < n; i++) { for (j = 0; j <= i; j++) { printf("%d", a[i][j]); printf(" "); } printf("\n"); }
[此贴子已经被作者于2017-11-19 22:45编辑过]
for (i = 0; i < n; i++) { for (j = 0; j < i; j++) { printf("%d", a[i][j]); printf(" "); } printf("%d",a[i][j+1]); printf("\n"); }
[此贴子已经被作者于2017-11-20 11:34编辑过]
[此贴子已经被作者于2017-11-20 12:12编辑过]