import java.util.Random; import java.util.Scanner;
public class Adivinanza {
public static void main(String[] args) {
Scanner teclado = new Scanner(System.in);
int numeroSecreto = new Random().nextInt(100);
int intentos = 0;
for (int i = 0; i < 5; i++) {
System.out.println("Digita un numero entre 1 y 100 por favor");
intentos = teclado.nextInt();
if (intentos == numeroSecreto){
System.out.println("Lo lograste");
}else {
if (intentos > numeroSecreto){
System.out.println("El numero es menor");
}else {
System.out.println("El numero es mayor");
}
}
}
}
}