Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. public static void Cwiczenie_04()
  2. {
  3. int[] tab1;
  4. tab1 = new int[(int)(Math.random() * 100)];
  5. for(int x1 = 0; x1 < tab1.length; x1++)
  6. {
  7. tab1[x1] = (int) (Math.random() * 10);
  8. System.out.print(tab1[x1] + " ");
  9. }
  10.  
  11.  
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement