Multiplicación de Matrices

public int[][] multiplicacion(int filas,int columnas,int filas2,int columnas2,int[][] matrizUno,int[][] matrizDos) { if(columnas==filas2) { for(int x=0;x<filas;x++) { for(int y=0;y<columnas2;y++) { matrizNueva4[x][y]= matrizUno[x][y]*matrizDos[y][x]; } } } else { JOptionPane.showMessageDialog(null,"Error No se puede realizar la operacion","-----Multiplicacion-----",JOptionPane.ERROR_MESSAGE); }return matrizNueva4; }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.