Advertisement
Guest User

SumTwoNumbers

a guest
May 4th, 2014
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.27 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class SumTwoNumbers {
  3.     public static void main(String[] args) {
  4.         Scanner scanner = new Scanner(System.in);
  5.         int first = scanner.nextInt();
  6.         int second = scanner.nextInt();
  7.         scanner.close();
  8.         System.out.println(first+second);
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement