Getting the age of participant, of the age is less than or equal to 17 you need to print sorry you are not able to join the event, else you need to print welcome to the event.
1. Print a prompt to a user
2. Get integer age from the user
3. If age > 17 go to step 6
4. Print "Sorry you are not able to join the event"
5. Go to step 7
6. Print "Welcome to event"
7. Exit
Comments
Leave a comment