human
Program to check if a number is divisible by any of its digits | Function to check if given number is divisible by any of its digits.
check if any of digit divides n.
check if K divides N.
Driver Code"
Solution in Python:
 ... What is a code to program to check if a number is divisible by any of its digits and the other steps required?
assistant
#Here is code to program to check if a number is divisible by any of its digits and the other steps required.
 def isDivisible ( n ) :
	temp = n
	while ( n ) :
		k = n % 10
		if ( temp % k == 0 ) :
			return " YES "
		n /= 10 ;
	return " NO "
n = 9876543
print ( isDivisible ( n ) )