Sectionย 1. Chapterย 30
single
Challenge: if Condition
Swipe to show menu
Task
Swipe to start coding
- Declare an integer variable for the userโs age.
- If the user is 18 or older, print
Access granted. - If the user is between 13 and 17, print
Access limited. - If the user is 12 or younger, print
Access denied.
Solution
Everything was clear?
Thanks for your feedback!
Sectionย 1. Chapterย 30
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat