DEV Community

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

Collapse
 
nickyoung profile image
Nick Young • Edited

Trick question. In the instructions, it says to make a function called isDivisible() but in the example, it uses is_divisible() 🤔

PHP:

function isDivisible($n, $x, $y) {
    return ( $n % $x === 0 ) && ( $n % $y === 0 );
}