Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. /**
  4. * Created by David on 21/01/2017.
  5. */
  6. public class Main {
  7.  
  8. public static void main(String[] args) {
  9. int num;
  10.  
  11. Scanner in = new Scanner(System.in);
  12. System.out.println("Enter a num: ");
  13.  
  14. num = in.nextInt();
  15.  
  16. System.out.print(num);
  17. }
  18. }
  19.  
  20. Enter a num:
  21. 5
  22. 6
  23. 3
  24. aasd
  25. 1335
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement