Problem

Student true return 1 else adult 2.

Examples

  • ticketType(true) -> 1
  • ticketType(false) -> 2
Compile and test (Ctrl+Enter)