human
Check if a larger number divisible by 36 | Function to check whether a number is divisible by 36 or not.
null number cannot be divisible by 36.
single digit number other than 0 is not divisible by 36.
number formed by the last 2 digits.
if number is not divisible by 4.
number is divisible by 4 calculate sum of digits.
sum of digits is not divisible by 9.
Number is divisible by 4 and 9 hence , number is divisible by 36.
Driver program"
Solution in Python:
assistant
#Here is code to check if a larger number divisible by 36 and the other steps required.
 def divisibleBy36 ( num ) :
	l = len ( num )
	if ( l == 0 ) :
		return ( " No " )
	if ( l == 1 and num [ 0 ] != '0' ) :
		return ( " No " )
	two_digit_num = ( ( ( int ) ( num [ l - 2 ] ) ) * 10 + ( int ) ( num [ l - 1 ] ) )
	if ( two_digit_num % 4 != 0 ) :
		return " No "
	sm = 0
	for i in range ( 0 , l ) :
		sm = sm + ( int ) ( num [ i ] )
	if ( sm % 9 != 0 ) :
		return ( " No " )
	return ( " Yes " )
num = "92567812197966231384"
print ( divisibleBy36 ( num ) )