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