0
import java.util.Random;
import java.util.Scanner;

public class massiv {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);

        Random rand = new Random();
        int[] myArray = new int[10];

        for (int i = 0; i < 10; i++) {
            myArray[i] = rand.nextInt(9);

            System.out.println(myArray );
        }
    }
}
3

0

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge you have read our privacy policy.

Посмотрите другие вопросы с метками или задайте свой вопрос.