Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1. public class Test {
  2.     public static void main(String[] args) {
  3.         int limit = 10;
  4.         int[] mas = new int[limit * 100];
  5.         for (int i = 0; i < mas.length; i++) {
  6.             mas[i] = (int) (Math.random() * 100);
  7.         }
  8.         for (int i = 0; i < mas.length / limit; i++) {
  9.             for (int j = 0; j < limit; j++) {
  10.                 System.out.print(mas[i * limit + j] + " ");
  11.             }
  12.             System.out.println();
  13.         }
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement