Questo è il metodo che fa il prodotto.codice:static int [] Prodotto(int m[][],int n[][]){ int p[]=new int [n.length]; for(int i=0;i<m.length;i++) for(int j=0;j<m[i].length;j++){ for(int z=0;z<n.length;z++) p[z]+=n[i][j]*m[i][j]; } return p; }
Questo è il metodo che fa il prodotto.codice:static int [] Prodotto(int m[][],int n[][]){ int p[]=new int [n.length]; for(int i=0;i<m.length;i++) for(int j=0;j<m[i].length;j++){ for(int z=0;z<n.length;z++) p[z]+=n[i][j]*m[i][j]; } return p; }
Lang=Java
Ambiente = Eclipse forever
Ubuntu& Win XP Pro