top of page

# include <iostream>
# include <math.h>
# include <conio.h>
using namespace std;
int main()
{
    int opcion;
    cout <<"++menu++";
    cout<< "multiplicacion de matrices";
    cout<<"menor complementario";
    cout<<"mostrar matriz";
    cin>>opcion;
    int numero[100][100],filas,columnas;
    cout <<"digite el numero de filas :";
    cin>> filas;
    cout<< "digite el numero de columnas :";
    cin>>columnas;
    // Almacenando los elementos de las matriz
    for(int i=0; i<filas; i++)
    {
        for(int j=0; j<columnas; j++)
        {
            cout<<"digite un numero["<<i<<"]["<<j<<"]:";
            cin>>numero[i][j];
        }
    }
    // mostrando la matriz
    for(int i=0; i<filas; i++)
    {
        for(int j=0; j<columnas; j++)
        {
            cout<<numero[i][j];
        }
        cout<<"\n";
    }
    
    //system("pause")
    return 0;
}

MATRICES 

bottom of page