#include <stdio.h>

// dichiaro array 2d globale
int a[2][4] = {
    { 3, 11, 64, 9 },
    { 11, 5, 3, 82 }
};

int main() {
    int r,c;
    for(r = 0; r < 2; r++) {
        // qui esamino la riga r
        for(c = 0; c < 4; c++) {
            // stampo la riga r
            printf("a[%d][%d]=%2d   ", r+1,c+1,a[r][c]);
        }
        // qui vado a capo
        printf("\n");
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: