Practice ยท 2 of 3
Eligibility Rules
Implement int can_rent_car(int age, int license_years): eligible when age >= 21 AND license_years >= 1; a driver under 21 is never eligible, no matter the years. Return 1/0.
Difficulty: beginner
Press Submit to check your solution.
Back to lesson: Practice: Decision Bench