One Odd and One Even

Published by Matt in

Given a two digit number, return true if that number contains one even and one odd digit.

Examples

one_odd_one_even(12) ➞ true

one_odd_one_even(55) ➞ false

one_odd_one_even(22) ➞ false

Notes

N/A

Watch a quick demo on how Edabit works.