Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. int origen[ ] = {2,10,-4,8,0};
  2.  
  3. int [ ] destino = new int [origen.length];
  4.  
  5. for (int i = 0; i < origen.length; i++){
  6.  
  7. destino[i]=origen[i];
  8.  
  9. }
  10. int i;
  11. for ( i = 0; i < origen.length; i++){
  12.  
  13. System.out.println("Indice: " + i + " valor: " + destino[i]);
  14.  
  15. }
  16. }
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement