#define NBLIG 3 /* nombre de lignes de la matrice */
#define NBCOL 4 /* nombre de colonnes */
void main(void)
{
    short int lig,col ;
    static short int mat[NBLIG][NBCOL] ;
    /* Saisie de la matrice : */
    for (lig=0 ; lig<NBLIG ; lig++)
        for (col=0 ; col<NBCOL ; col++)
        {
            printf("\n Entrez l'élément (%hd,%hd) : ", lig+1,col+1) ;
            scanf("%hd", &mat[lig][col]) ;
        }
    /* Affichage de la matrice : */
    printf("\n\n La matrice saisie est :\n") ;
    for (lig=0 ; lig<NBLIG ; lig++)
    {
        for (col=0 ; col<NBCOL ; col++)
            printf("\t %hd ", mat[lig][col]) ;
        printf("\n") ;
    }
}
