Hi i need to create in for loop that gives 100 random values from N to M. User need to declare N and M values from a Scanner
Scanner input = new Scanner(System.in);
int n = input.nextInt();
int m = input.nextInt();
for (int i = 0; i < 100; i++) {
Math.random();
}
Aucun commentaire:
Enregistrer un commentaire