Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Input
- {
- public static void main(String[]args)
- {
- Scanner scanner = new Scanner(System.in);
- System.out.println("Please type a number!");
- int a = scanner.nextInt();
- System.out.println("Please type another number!");
- int b = scanner.nextInt();
- System.out.println("Your numbers are: " + a + " and " + b + ".");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement