#include <stdio.h>

#define MIDA 3

typedef struct {
	int m[MIDA][MIDA];
	int nf, nc;
} t_matriu;
	
void imprimir_matriu(t_matriu m) {
	int f,c;
	for(f=0;f<m.nf;f++) {
		printf("(");
		for(c=0;c<m.nc;c++) {
			printf("%2d ", m.m[f][c]);
		}
		printf(")\n");
	}
}

void main() {
	t_matriu m1 = {{{1,2},{3,4},{5,6}},3,2};
	int f,c,i;

	printf("Intro [f c]: ");
	scanf("%d %d", &m1.nf, &m1.nc);
	printf("Intro elements de la matriu:\n");
	for(f=0;f<m1.nf;f++) {
		for(c=0;c<m1.nc;c++) {
			scanf("%d", &m1.m[f][c]);
		}
	}

	imprimir_matriu(m1);
}

