Advertisement
libdo

Untitled

Sep 18th, 2017
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.Scanner;
  2.  
  3. public class Main {
  4.  
  5. public static void main(String[] args) {
  6. System.out.println("How old are you?");
  7.  
  8. Scanner sc = new Scanner(System.in);
  9. int sum = Integer.parseInt(sc.nextLine());
  10. if (sum >= 18 && sum < 60) {
  11. System.out.println("Проходите");
  12. } else if (sum >= 60) {
  13. System.out.println("Это заведение не для вас");
  14. } else {
  15. System.out.println("Можно только с родителями");
  16. }
  17. // write your code here
  18.  
  19. if (sum % 10 == 0) {
  20. System.out.println("Юбилей");
  21. }
  22.  
  23. long veryLongVariableName;
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement