Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 642 Bytes

File metadata and controls

25 lines (14 loc) · 642 Bytes

Problem 18

You will be solving the given problem below.

Problem

An upcoming artist's concert is coming to town. The concert manager is only allowing one person of a pair to be a "teen". Your at the front gate checking tickets and verifying ages. You allowed to let a pair in as long as only one person is a teen but both can't be a "teen".

A "teen" is considered someone within the range of 13...19 inclusive.

Return true if one or the other person in the pair is a teen, but not both.

Example:

oneTeen(13, 99) --> true

oneTeen(21, 19) --> true

oneTeen(13, 13) --> false

Submission

Commit and push your solution to GitHub