Find the smallest and the greatest digit so that the number formed is divisible by given divisor:
A number is divisible by if the sum of its digits is divisible by .
Sum of digits which is already divisible by .
If is added then sum is which is divisible by .
So, is the smallest digit so that the number formed is divisible by given divisor.
If is added then sum is which is divisible by .
and is the greatest digit so that the number formed is divisible by given divisor.