Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error de compilación
Main.java:5: error: class Suma2Num is public, should be declared in a file named Suma2Num.java public class Suma2Num { ^ 1 error |
||
#2 |
Error de compilación
Main.java:5: error: class Suma2Num is public, should be declared in a file named Suma2Num.java public class Suma2Num { ^ 1 error |
||
#3 |
Error de compilación
Main.java:5: error: class Suma2Num is public, should be declared in a file named Suma2Num.java public class Suma2Num { ^ 1 error |
||
#4 |
Error de compilación
Main.java:5: error: class Suma2Num is public, should be declared in a file named Suma2Num.java public class Suma2Num { ^ 1 error |
||
#5 |
Error de compilación
Main.java:5: error: class Suma2Num is public, should be declared in a file named Suma2Num.java public class Suma2Num { ^ 1 error |
package Problemas; import java.util.Scanner; public class Suma2Num { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); int b = scanner.nextInt(); int suma = a + b; System.out.println(suma); } }