1 2 3 . . 8 9
10
1 2 3 . . 8 9
0
1 2 3 . . 8 0
. . . . . . . .
#include <stdio.h>
#define row 10
#define col 10
int main(){
int arr[row][col] = { 0 };
int i, j;
for(i = 0; i < row; ++i)
for(j = 0; j < (col - i); ++j)
arr[i][j] = j + 1;
for(i = 0; i < row; ++i){
printf("[ ");
for(j = 0; j < col; ++j)
printf("%i ", arr[i][j]);
printf("]\n");
}
return 0;
}
Real great information can be found on weblog.Leadership