View Code of Problem 1

import java.util.Scanner;
 
public class Main{
  public static void main(String args[]){
    int a;
    Scanner s = new Scanner(System.in);
    a=s.nextInt();
    
    int b;
    Scanner t = new Scanner(System.in);
    b=t.nextInt();
    int c = a+b;
    System.out.println(c);
  }
}

Double click to view unformatted code.


Back to problem 1