Advertisement
Guest User

Untitled

a guest
Apr 28th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.70 KB | None | 0 0
  1. public class SumaDeArrays {
  2.  
  3.        public static void main(String arg[ ]) {
  4.  
  5.              Int[ ] arreglo1 = new Int[4];
  6.  
  7.              arreglo1[0] = 3;
  8.  
  9.              arreglo1[1] = 5;
  10.  
  11.              arreglo1[2] = 2;
  12.  
  13.              arreglo1[3] = 7;
  14.  
  15.              arreglo1[4] = 8;  
  16.              
  17.              
  18.             Int[ ] arreglo2 = new Int[4];
  19.  
  20.              arreglo2[0] = 8;
  21.  
  22.              arreglo2[1] = 3;
  23.  
  24.              arreglo2[2] = 4;
  25.  
  26.              arreglo2[3] = 4;
  27.  
  28.              arreglo2[4] = 7;
  29.              
  30.              int multiplicacion =   arreglo1[0] * arreglo2[0]
  31.              
  32.              System.out.print("El resultado de la multiplicacion es  "+ multiplicacion);
  33.      }
  34.  
  35.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement