Created
November 29, 2013 19:21
-
-
Save lhchavez/7710659 to your computer and use it in GitHub Desktop.
Código para resolver Sumas.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import java.util.*; | |
// Todos los problemas en Java _deben_ usar Main como nombre de clase. | |
class Main { | |
public static void main(String[] args) throws IOException { | |
// Declaración del scanner para poder leer por tokens. | |
Scanner in = new Scanner(System.in); | |
int a, b, c; | |
a = in.nextInt(); | |
b = in.nextInt(); | |
c = a + b; | |
System.out.println(c); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment