Skip to content

Instantly share code, notes, and snippets.

@kocko
Created July 11, 2018 12:07
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 kocko/ef55261a45924d1e5135d85ac46b3161 to your computer and use it in GitHub Desktop.
Save kocko/ef55261a45924d1e5135d85ac46b3161 to your computer and use it in GitHub Desktop.
import java.util.Scanner;
public class Read {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt(), y = sc.nextInt();
System.out.println("x + y = " + (x + y));
sc.close();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment