#include #include #define NOMBRE_LIGNES 6 #define NOMBRE_COLONNES 8 void main(void) { srand(10); int tab[NOMBRE_LIGNES][NOMBRE_COLONNES]; for (int l = 0; l < NOMBRE_LIGNES; l++) { for (int c = 0; c < NOMBRE_COLONNES; c++) { tab[l][c] = rand() % 10; } } for (int l = 0; l < NOMBRE_LIGNES; l++) { for (int c = 0; c < NOMBRE_COLONNES; c++) { printf("%3d", tab[l][c]); } printf("\n"); } printf("\n"); }