...

Exercise: Car Rental Advanced Rules

A car rental company has specific eligibility requirements. A customer can rent a car if they have a valid driver's license and meet one of these conditions:

  • Are 21+ years old with premium insurance, or
  • Are 25+ years old (regardless of insurance type)

Your Task

Write an eligibility checker using the three provided inputs. Print "Rental approved!" if they qualify, otherwise print "Sorry, you cannot rent a car."

Hint: You'll need to combine AND and OR operators. Think about how the license requirement applies to both age conditions.

Loading...

Output (Console)