Problem

Age <12 return 8; age <18 return 12; else 15.

Examples

  • ticketPrice(10) -> 8
  • ticketPrice(20) -> 15
Compile and test (Ctrl+Enter)