Advertisement
Guest User

Untitled

a guest
Sep 9th, 2014
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3.  
  4. public class Problem6_SumTwoNumbers {
  5.  
  6. public static void main (String[] args){
  7. Scanner input = new Scanner(System.in);
  8. System.out.print("a = ");
  9. int a = input.nextInt();
  10. System.out.print("b = ");
  11. int b = input.nextInt();
  12. System.out.printf("a + b = %s", (a+b));
  13.  
  14. }
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement