Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created November 11, 2019 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/35d0ab47b221ec5ca5b89a7311003fbd to your computer and use it in GitHub Desktop.
Save parzibyte/35d0ab47b221ec5ca5b89a7311003fbd to your computer and use it in GitHub Desktop.
#define FILAS_MATRIZ_B 3
#define COLUMNAS_MATRIZ_B 2
#define FILAS_MATRIZ_A 3
#define COLUMNAS_MATRIZ_A 3
int matrizA[FILAS_MATRIZ_A][COLUMNAS_MATRIZ_A] = {
{3, 2, 1},
{1, 1, 3},
{0, 2, 1},
};
int matrizB[FILAS_MATRIZ_B][COLUMNAS_MATRIZ_B] = {
{2, 1},
{1, 0},
{3, 2},
};
if (COLUMNAS_MATRIZ_A != FILAS_MATRIZ_B) {
printf("Columnas de matriz A deben ser igual a filas de matriz B");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment