According to this XKCD comic, there is a formula to determine whether or not the age gap in a relationship is "creepy". This formula is defined as:
(Age/2) + 7
being the minimum age of people you can date.
Therefore a relationship is creepy if either of the people in said relationship are younger than the minimum age of the other.
Given the age of two people, can you output whether or not that relationship is creepy?
Your program should take two integers as input, the age of both people in the relationship. These can be taken in any reasonable format.
Your program must then output a truthy or falsy value describiing whether or not the relationship is "creepy" (Truthy = Creepy).
- Standard loopholes are not allowed.
- This puzzle is Code Golf, so the answer with the shortest source code in bytes wins
40, 40 - Not Creepy 18, 21 - Not Creepy 80, 32 - Creepy 15, 50 - Creepy 47, 10000 - Creepy 37, 38 - Not Creepy 22, 18 - Not Creepy
age/2be rounded? Probably up if the exact half is supposed to be the minimum?
17,21would make a good test case. \$\endgroup\$
13, 13 - Creepy. \$\endgroup\$