else statement | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

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

19th Aug 2022, 6:57 AM
Arif Shaikh
Arif Shaikh - avatar
3 Answers
+ 3
Ok, so this is what you need to solve. What is the issue you are having trouble with?
19th Aug 2022, 7:06 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 2
Hi! it would be interesting to see your option. thank you!
19th Aug 2022, 7:06 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
0
Do you mean something like this: https://code.sololearn.com/W0L907V96IqD/?ref=app
19th Aug 2022, 9:14 AM
EsaKurniawan