Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Problem6_SumTwoNumbers {
- public static void main (String[] args){
- Scanner input = new Scanner(System.in);
- System.out.print("a = ");
- int a = input.nextInt();
- System.out.print("b = ");
- int b = input.nextInt();
- System.out.printf("a + b = %s", (a+b));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement