Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- System.out.println("How old are you?");
- Scanner sc = new Scanner(System.in);
- int sum = Integer.parseInt(sc.nextLine());
- if (sum >= 18 && sum < 60) {
- System.out.println("Проходите");
- } else if (sum >= 60) {
- System.out.println("Это заведение не для вас");
- } else {
- System.out.println("Можно только с родителями");
- }
- // write your code here
- if (sum % 10 == 0) {
- System.out.println("Юбилей");
- }
- long veryLongVariableName;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement