SectionΒ 1. ChapterΒ 30
single
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Β 1. ChapterΒ 30
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat