daily pastebin goal
38%
SHARE
TWEET

Untitled

a guest Nov 25th, 2017 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         int[] tab = new int[20];
  2.  
  3.         for(int i=0; i < tab.length; i++){
  4.             tab[i] = (int)(Math.random() * 10);
  5.            
  6.             if(tab[i] % 2 == 0){
  7.                 System.out.println("*");
  8.                 System.out.println("Wartosc: " + tab[i]);
  9.                 System.out.println("Index: " + i);
  10.                 System.out.println("*");
  11.             }
  12.         }
RAW Paste Data
Top