Wydrukuj tablicę 2D w C
// most of the time I forget that there should be matrix[i][j], not matrix[i]
#include <stdio.h>
// Abdullah Miraz
int main(){
int i, j;
int matrix[2][3] = {{2,3,4,5}, {7,8,9,1}};
for(i=0;i< 2 ; i++){
for(j=0;j<3;j++){
printf("%d ", matrix[i][j]);
}
}
}
red-kid