Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 2. Пълнолетие
- # Напишете програма, която приема възраст и отпечатва:
- # "Пълнолетен", ако е 18 или повече
- # "Непълнолетен", ако е под 18
- age = int(input("Please enter the person's age: "))
- if age <= 0:
- print("Age cannot be less than or equal to 0.")
- elif age < 18:
- print("The person is a minor.")
- else:
- print("The person is of legal age.")
Advertisement
Add Comment
Please, Sign In to add comment