fork(2) download
  1. import java.util.Scanner;
  2.  
  3. class Main {
  4. public static void main(String[] args) {
  5. int a,b,c;
  6. Scanner s= new Scanner(System.in);
  7. a = s.nextInt();
  8. b= s.nextInt();
  9. c=a+b;
  10. System.out.println(c);
  11. }
  12. }
Success #stdin #stdout 0.1s 380672KB
stdin
3
4
stdout
7