Suma y Producto de Dos Matrices de Orden n

Post on 19-Dec-2015

216 views 3 download

description

C++

Transcript of Suma y Producto de Dos Matrices de Orden n

SUMA Y PRODUCTO DE DOS MATRICES DE ORDEN n#include int const M=20;using namespace std;void leer_mat (int n, int elem [][M]);void escribe_mat (int n, int elem [][M]);void suma_mat (int a[][M], int b[][M], int s[][M], int n);void prod_mat(int a[][M], int b[][M], int p[][M], int n);

void leer_mat (int elem [M][M], int n){ cout