Divides Evenly

Published by zatoichi49 in

Given two integers, a and b, return true if a can be divided evenly by b. Return false otherwise.

Examples

divides_evenly(98, 7) ➞ true
# 98/7 = 14

divides_evenly(85, 4) ➞ false
# 85/4 = 21.25

Notes

a will always be greater than or equal to b.

Watch a quick demo on how Edabit works.