DEV Community

Discussion on: Daily Challenge #157 - Is N Divisible by X and Y?

Collapse
 
avalander profile image
Avalander

Racket

(define (is-divisible n x y)
  (and
   (= 0 (modulo n x))
   (= 0 (modulo n y))))