low and high, count the balanced numbers from low to high inclusive.low=20, high=40 → 5
20, 30 and 40 qualify (they contain a zero, so the digit product is 0), and so do 22 (4 is divisible by 4) and 36 (18 is divisible by 9). That makes 5.
low=111, high=119 → 0
For 11d the digit sum is d + 2 and the product is d, which is always smaller than the sum and not divisible by it. None qualify.
low=7, high=7 → 1
For a one-digit number the digit product and the digit sum are the same.
low=20, high=40
5
Run checks the first 3 tests in your browser. Submit checks all 92 tests on the server, hidden ones included.