Challenge: if Condition
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Β 3. ChapterΒ 6
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 1.67
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Β 3. ChapterΒ 6
single