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

Envío 4295

Problema 0x60 - ¿Mayor, menor o igual?

  • Autor: saris123
  • Fecha: 2021-06-06 16:10:44 UTC (Hace 17 días)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      Main.java:3: error: class HelloCodeo is public, should be declared in a file named HelloCodeo.java
public class HelloCodeo {
       ^
1 error

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

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

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

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

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

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

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

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

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

                    
Puntos totales: 0 / 100

Código

import java.util.Scanner;

public class HelloCodeo {

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