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