DEV Community

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

Collapse
 
mistrikushal profile image
Kushal

ruby

def isDivisible(n, x, y)
  (n % x == 0) && (n % y == 0)
end