+ 1
else statement
Write a program to control entrance to a club. Only people who are 18 or older are allowed to enter the club. The given program takes the age and the name of the person who tries to enter. Complete the program to output "Welcome" followed by the name of the person if they are allowed to enter the club, and "Sorry" if they are younger than the allowed age. Sample Input 24 James Sample Output Welcome James
3 Antworten
+ 3
Ok, so this is what you need to solve. What is the issue you are having trouble with?
+ 2
Hi! it would be interesting to see your option. thank you!
0
Do you mean something like this:
https://code.sololearn.com/W0L907V96IqD/?ref=app