Ad
Code
Diff
  • pub fn is_divisible(n: i32, x: i32, y: i32) -> bool {
        n % x * y == 0
    }
    • pub fn is_divisible(n: i32, x: i32, y: i32) -> bool {
    • n%x+n%y==0
    • n % x * y == 0
    • }