import java.util.Random; import java.util.Scanner;
public class Desafio {
public static void main(String[] args) {
System.out.println("bienvenido al Desafío: juego de adivinación");
int intentos = 0;
Scanner numero = new Scanner(System.in);
int numeros = 0;
int aleatorio = new Random().nextInt(101);
for (int i = 0; i < 5; i++) {
System.out.println("digita un numero del 1 al 100");
numeros = numero.nextInt();
intentos++;
if (aleatorio == numeros) {
System.out.println("felicidades conociste el número secreto");
break;
} else if (numeros < aleatorio){
System.out.println("el número es mayor");
}else {
System.out.println("el número es menor");
}
}
}
}