top of page

#include <iostream>
#include <math.h>
using namespace std;
//zona publica
int i,j;
int M[3][3],A[3][3],B[3][3];
int Leer_Matriz(),Ver_Matriz(),Leer_2_Matrices(),Ver_2_Matrices(),Leer_Matrices_Transpuesta(),Ver_Matrices_Transpuesta(),Leer_Matrices_Transpuestas(),Ver_Matrices_Transpuestas(),Matriz_Identidad(),Suma_de_2_Matrices(),Matriz_Transpuesta(),Miembros_Complementarios(),Matriz_Determinante(),Mayor_y_sus_Indices(),Menor_y_sus_Indices(),Matriz_Multiplicacion();
int opcion;
int main ()
{
 do
{
    cout<< "Menu de Matrices \n ";
    cout<< "1.- Leer Matriz \n ";
    cout<< "2.- Ver Matriz \n";
    cout<< "3.- Leer 2 Matrices \n";
    cout<< "4.- Ver 2 Matrices \n";
    cout<< "5.- Leer Matrices Transpuesta \n";
    cout<< "6.- Ver Matrices Transpuesta \n";
    cout<< "7.- Matriz Identidad \n";
    cout<< "8.- Suma de 2 Matrices \n";
    cout<< "9.- Matriz Transpuesta \n";
    cout<< "10.- Miembros Complementarios \n";
    cout<< "11.- Matriz Determinante \n";
    cout<< "12.- Mayor y sus Indices \n ";
    cout<< "13.- Menor y sus Indices \n ";
    cout<< "14.- Matriz Multiplicacion \n ";
    cout<< "Ingrese una opcion  : \n";
    cin>> opcion;
    switch(opcion)
    {
        case 1:
            {
                Leer_Matriz();
            };break;
        case 2:
            {
                Ver_Matriz();
            };break;
        case 3:
            {
                Leer_2_Matrices();
            };break;
        case 4:
            {
                Ver_2_Matrices();
            };break;
        case 5:
            {
                Leer_Matrices_Transpuesta();
            };break;
        case 6:
            {
                Ver_Matrices_Transpuesta();
            };break;
        case 7:
            {
                Matriz_Identidad();
            };break;
        case 8:
            {
                Suma_de_2_Matrices();
            };break;
        case 9:
            {
                Matriz_Transpuesta();
            };break;
        case 10:
            {
                Miembros_Complementarios();
            };break;
        case 11:
            {
                Matriz_Determinante();
            };break;
        case 12:
            {
                Mayor_y_sus_Indices();
            };break;
        case 13:
            {
                Menor_y_sus_Indices();
            };break;
        case 14:
            {
                Matriz_Multiplicacion();
            };break;
}//FIN SWITCH
}while(opcion=!0);
}

int Leer_Matriz()
{
    for(i=1;i<=3;i++)
    for(j=1;j<=3;j++)
    cin>>M[i][j];
    cout<<"La matriz ingresada es : ";
}
int Ver_Matriz()
{
    for(i=1;i<=3;i++)
    {
    for(j=1;j<=3;j++)
    {
        cout<<M[i][j];
    }
    }
}
int Leer_2_Matrices()
{
    cout<<"Las matrices de: A[][] " ; cout<<endl;
    for(i=1;i<=3;i++)
    for(j=1;j<=3;j++)
    cin>>A[i][j];
    cout<<"Las matrices de : B[][] " ; cout<<endl;
    for(i=1;i<=3;i++)
    for(j=1;j<=3;j++)
    cin>>B[i][j];
}
int Ver_2_Matrices()
{
    cout<<"Las 2 matrices ingresadas son  :  ";
    
}
int Leer_Matrices_Transpuesta()
{
    cout<<"Las matrices transpuetas ingresadas son : ";
    
}
int Ver_Matrices_Transpuesta()
{
    cout<<"La matriz transpuesta es : ";
    
}
int Matriz_Identidad()
{
    cout<<"La matriz identidad es : ";
    
}
int Suma_de_2_Matrices()
{
    for(i=1;i<=3;i++)
    for(j=1;j<=3;j++)
    M[i][j]=A[i][j]+B[i][j];
    cout<<M[i][j];
}
int Matriz_Transpuesta()
{
    cout<<"La matriz transpuesta es  :  ";
    
}
int Miembros_Complementarios()
{
    cout<<"El miembro complementario es : ";
    
}
int Matriz_Determinante()
{
    cout<<"La determinante es : ";
    
}
int Mayor_y_sus_Indices()
{
    cout<<"El mayor y sus indices es : ";
    
}
int Menor_y_sus_Indices()
{
    cout<<"El menor y sus indices es : ";
    
}
int Matriz_Multiplicacion()
{
    cout<<"La multiplicacion es : ";
    
}

    
    

bottom of page