Created
November 11, 2019 14:10
-
-
Save parzibyte/35d0ab47b221ec5ca5b89a7311003fbd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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