Skip to content

Instantly share code, notes, and snippets.

@lhchavez
Created November 29, 2013 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lhchavez/7710659 to your computer and use it in GitHub Desktop.
Save lhchavez/7710659 to your computer and use it in GitHub Desktop.
Código para resolver Sumas.
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