import java.io.*; class Vector1 extends Lectura { public static void main(String X[]) { int x = 0; int r, c; int A[][] = new int[3][4]; int B[][] = new int[3][2]; int R[][] = new int[3][4]; for (r = 0; r < 3; r++) for(c = 0; c < 4; c++) { System.out.println("A["+(r+1)+"]["+(c+1)+"] ="); A[r][c] = Integer.parseInt(LeeDato("")); } for (r = 0; r < 3; r++) for(c = 0; c < 2; c++) { System.out.println("B["+(r+1)+"]["+(c+1)+"] ="); B[r][c] = Integer.parseInt(LeeDato("")); } // Aqui comienza la suma for(r=0; r < 3; r++) for(c=0; c< 4; c++) R[r][c] = A[r][c]; for(r=0; r < 3; r++) for(c=0; c< 2; c++) R[r][c] = A[r][c] + B[r][c]; for(r=0; r < 3; r++) for(c=0; c < 4; c++) System.out.println("R["+(r+1)+"]["+(c+1)+"] = "+R[r][c]); } }