BezeFox

Untitled

Mar 26th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1. class Vetor{
  2.  
  3.     public static void main (String args[]){
  4.    
  5.         int soma;
  6.        
  7.         int[] idades = new int[10];
  8.        
  9.         for (int i = 0; i < 10; i++){
  10.             idades[i] = i * 10;
  11.         }
  12.        
  13.         for (int x : idades){
  14.             System.out.println(x);
  15.         }
  16.        
  17.         for (int i = 0; i < idades.length; i++){
  18.             System.out.println(idades[i]);
  19.         }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment