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

Envío 6334

Problema 0x60 - ¿Mayor, menor o igual?

  • Autor: Justin
  • Fecha: 2022-06-14 23:24:26 UTC (Hace 8 meses)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      Main.java:1: error: class MayorMenor is public, should be declared in a file named MayorMenor.java
public class MayorMenor{
       ^
1 error

                    
#2
Error de compilación
                      Main.java:1: error: class MayorMenor is public, should be declared in a file named MayorMenor.java
public class MayorMenor{
       ^
1 error

                    
#3
Error de compilación
                      Main.java:1: error: class MayorMenor is public, should be declared in a file named MayorMenor.java
public class MayorMenor{
       ^
1 error

                    
#4
Error de compilación
                      Main.java:1: error: class MayorMenor is public, should be declared in a file named MayorMenor.java
public class MayorMenor{
       ^
1 error

                    
#5
Error de compilación
                      Main.java:1: error: class MayorMenor is public, should be declared in a file named MayorMenor.java
public class MayorMenor{
       ^
1 error

                    
#6
Error de compilación
                      Main.java:1: error: class MayorMenor is public, should be declared in a file named MayorMenor.java
public class MayorMenor{
       ^
1 error

                    
#7
Error de compilación
                      Main.java:1: error: class MayorMenor is public, should be declared in a file named MayorMenor.java
public class MayorMenor{
       ^
1 error

                    
#8
Error de compilación
                      Main.java:1: error: class MayorMenor is public, should be declared in a file named MayorMenor.java
public class MayorMenor{
       ^
1 error

                    
#9
Error de compilación
                      Main.java:1: error: class MayorMenor is public, should be declared in a file named MayorMenor.java
public class MayorMenor{
       ^
1 error

                    
#10
Error de compilación
                      Main.java:1: error: class MayorMenor is public, should be declared in a file named MayorMenor.java
public class MayorMenor{
       ^
1 error

                    
Puntos totales: 0 / 100

Código

public class MayorMenor{
  public static void main(String args[]){
    int num_uno = 3, num_dos = 4;

    if(num_uno < num_dos){
      System.out.println("<");

    } else if (num_uno > num_dos){
      System.out.println(">");

    } else {
      System.out.println("=");
    }
  }
}