Advertisement
MrsMcLead

Input

Feb 7th, 2014
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Input
  4. {
  5.   public static void main(String[]args)
  6.   {
  7.     Scanner scanner = new Scanner(System.in);
  8.     System.out.println("Please type a number!");
  9.     int a = scanner.nextInt();
  10.     System.out.println("Please type another number!");
  11.     int b = scanner.nextInt();
  12.     System.out.println("Your numbers are: " + a + " and " + b + ".");
  13.   }  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement