Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class prog1 {
- public static void main(String[] args)
- {
- Scanner sc = new Scanner(System.in);
- System.out.println("Enter First Number:");
- int i = sc.nextInt();
- System.out.println("Enter Second Number:");
- int j = sc.nextInt();
- int z = i + j;
- System.out.println("First Number: " + i);
- System.out.println("Second Number: " + j);
- System.out.println("Sum of Numbers: " + z);
- sc.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement