Friday the 13th

Published by Matt in

Given the month and year as numbers, return whether that month contains a Friday 13th.

Examples

has_friday_13(3, 2020) ➞ true

has_friday_13(10, 2017) ➞ true

has_friday_13(1, 1985) ➞ false

Notes

January will be given as 1, February as 2, etc ...

Watch a quick demo on how Edabit works.