Hice el ejercicio 2 y no me muesta la matriz entera
#include<stdio.h>
#include <stdbool.h>
#include <conio.h>
int main(){
int matriz[3][3];
bool sim = true;
printf("Ingrese valores para la matriz 3x3\n ");
for(int i = 0; i<3; i++){
for(int j = 0; j < 3; j++ ){
printf("Elemento [%d | %d] : ", i
,j
); scanf(" %d",&matriz
[i
][j
]); }
}
printf("Elementos almacenados en la matriz: \n\n");
for(int i = 0; i < 3; i++){
for(int j = 0; j < 3; j++){
if(matriz[i][j] != matriz[j][i]){
sim = false;
i = 3;
break;
}
}
}
if(sim==true)
printf("La matriz es simetrica"); else
printf("La matriz NO es simetrica ");
return 0;
}
· Los códigos deben ir en etiquetas GeSHi
>aquí las reglas del foro
-Engel Lex