█████████ ████ ███░░░░░███ ░░███ ███ ░░░ ██████ ███████ ██████ ██████ ░███ ███░░███ ███░░███ ███░░███ ███░░███ ░███ ░███ ░███░███ ░███ ░███████ ░███ ░███ ░░███ ███░███ ░███░███ ░███ ░███░░░ ░███ ░███ ░░█████████ ░░██████ ░░████████░░██████ ░░██████ ░░░░░░░░░ ░░░░░░ ░░░░░░░░ ░░░░░░ ░░░░░░

Envío 4221

Problema 0x60 - ¿Mayor, menor o igual?

  • Autor: andres0608
  • Fecha: 2021-05-29 22:09:20 UTC (Hace más de 3 años)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      Main.java:5: error: cannot find symbol
	   Scanner numeros = new Scanner(System.in);
	   ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
	   Scanner numeros = new Scanner(System.in);
	                         ^
  symbol:   class Scanner
  location: class Main
2 errors

                    
#2
Error de compilación
                      Main.java:5: error: cannot find symbol
	   Scanner numeros = new Scanner(System.in);
	   ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
	   Scanner numeros = new Scanner(System.in);
	                         ^
  symbol:   class Scanner
  location: class Main
2 errors

                    
#3
Error de compilación
                      Main.java:5: error: cannot find symbol
	   Scanner numeros = new Scanner(System.in);
	   ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
	   Scanner numeros = new Scanner(System.in);
	                         ^
  symbol:   class Scanner
  location: class Main
2 errors

                    
#4
Error de compilación
                      Main.java:5: error: cannot find symbol
	   Scanner numeros = new Scanner(System.in);
	   ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
	   Scanner numeros = new Scanner(System.in);
	                         ^
  symbol:   class Scanner
  location: class Main
2 errors

                    
#5
Error de compilación
                      Main.java:5: error: cannot find symbol
	   Scanner numeros = new Scanner(System.in);
	   ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
	   Scanner numeros = new Scanner(System.in);
	                         ^
  symbol:   class Scanner
  location: class Main
2 errors

                    
#6
Error de compilación
                      Main.java:5: error: cannot find symbol
	   Scanner numeros = new Scanner(System.in);
	   ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
	   Scanner numeros = new Scanner(System.in);
	                         ^
  symbol:   class Scanner
  location: class Main
2 errors

                    
#7
Error de compilación
                      Main.java:5: error: cannot find symbol
	   Scanner numeros = new Scanner(System.in);
	   ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
	   Scanner numeros = new Scanner(System.in);
	                         ^
  symbol:   class Scanner
  location: class Main
2 errors

                    
#8
Error de compilación
                      Main.java:5: error: cannot find symbol
	   Scanner numeros = new Scanner(System.in);
	   ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
	   Scanner numeros = new Scanner(System.in);
	                         ^
  symbol:   class Scanner
  location: class Main
2 errors

                    
#9
Error de compilación
                      Main.java:5: error: cannot find symbol
	   Scanner numeros = new Scanner(System.in);
	   ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
	   Scanner numeros = new Scanner(System.in);
	                         ^
  symbol:   class Scanner
  location: class Main
2 errors

                    
#10
Error de compilación
                      Main.java:5: error: cannot find symbol
	   Scanner numeros = new Scanner(System.in);
	   ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
	   Scanner numeros = new Scanner(System.in);
	                         ^
  symbol:   class Scanner
  location: class Main
2 errors

                    
Puntos totales: 0 / 100

Código

public class Main {

   public static void main(String[] args) {
	   int numero1, numero2;
	   Scanner numeros = new Scanner(System.in);
	   numero1 = numeros.nextInt();
	   numero2 = numeros.nextInt();
	   if(numero1 > numero2){
			System.out.println(">");
	   }else{
		 if(numero1 < numero2){
		 System.out.println("<");
		 }else{
		 System.out.println("=");
		 }
	   }
   }
}