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