Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Test {
- public static void main(String[] args) {
- int limit = 10;
- int[] mas = new int[limit * 100];
- for (int i = 0; i < mas.length; i++) {
- mas[i] = (int) (Math.random() * 100);
- }
- for (int i = 0; i < mas.length / limit; i++) {
- for (int j = 0; j < limit; j++) {
- System.out.print(mas[i * limit + j] + " ");
- }
- System.out.println();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement