#include #define DIM1 8 #define DIM2 5 int main(int argc, char const *argv[]) { int stuff[DIM1][DIM2]; for (int i = 0; i < DIM1; i++) { for (int j = 0; j < DIM2; j++) { stuff[i][j] = i * 10000 + j; } } for (int i = 0; i < DIM1; i++) { for (int j = 0; j < DIM2; j++) { printf("%5d%5d%8d\n", i, j, stuff[i][j]); } } return 0; }