Challenge: Checking Age Eligibility
Task
Swipe to start coding
Write a program that checks if a person is old enough to drive. Display the following message:
The user is old enough to drive: trueifageis 18 or older.The user is old enough to drive: falseifageis less than 18.
Use a comparison operator to determine the result.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 2
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 1.35
Challenge: Checking Age Eligibility
Swipe to show menu
Task
Swipe to start coding
Write a program that checks if a person is old enough to drive. Display the following message:
The user is old enough to drive: trueifageis 18 or older.The user is old enough to drive: falseifageis less than 18.
Use a comparison operator to determine the result.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 2
single