import java.util.Random; import java.util.Scanner;
public class Desafio { public static void main(String[] args) { Scanner teclado = new Scanner(System.in); int opciones = 0; int total = 0;
    int numeroSecreto = new Random().nextInt(100);
    for (int i = 0; i < 5; i++) {
        System.out.println("Escriba su número");
        opciones = teclado.nextInt();
        if (opciones == numeroSecreto) {
            System.out.println("Es correcto Adivinaste: El numero es: " + numeroSecreto);
            break;
        } else if (opciones > numeroSecreto) {
            System.out.println("El numero secreto es menor");
        } else {
            System.out.println("El numero secreto es mayor");
        }
        ;
        if (opciones == 5) {
            System.out.println("lo siento, perdiste");
        }
    }
}
}
 
            