/*
5.- Crear un programa que pida al usuario los datos de dos matrices de 2×2, y calcule y muestre su producto.
*/
#include<iostream>
using namespace std;
int main(){
//-------------------------------------VARIABLES--------------------------------------------
float m1[2][2], m2[2][2], producto[2][2];
//-----------------------------------OPERACIONES-------------------------------------------
cout<<"\t Ingreso de matriz #1 -->2x2\n\n";
for(int i=0; i<=1; i++){
for(int j=0; j<=1; j++){
cout<<"\t Ingresar valor ["<<i<<"] "<<"["<<j<<"]: ";
cin>>m1[i][j];
}
cout<<"\n";
}
cout<<"\t Ingreso de matriz #2 -->2x2\n\n";
for(int i=0; i<=1; i++){
for(int j=0; j<=1; j++){
cout<<"\t Ingresar valor ["<<i<<"] "<<"["<<j<<"]: ";
cin>>m2[i][j];
}
cout<<"\n";
}
cout<<"\t Producto de las Dos Matrices de 2x2: \n\n";
for(int i=0; i<=1; i++){
for(int j=0; j<=1; j++){
producto[i][j] = m1[i][j] * m2[i][j];
cout<<"\t "<<producto[i][j]<<" ";
}
cout<<"\n";
}
return 0;
}