human
Give me a code to largest number smaller than or equal to N divisible by K and the other steps required given the following:
Largest number smaller than or equal to N divisible by K | Function to find the largest number smaller than or equal to N that is divisible by k.
Driver code"
Solution in Python:
assistant
#Here is code to largest number smaller than or equal to N divisible by K and the other steps required.
 def findNum ( N , K ) :
	rem = N % K
	if ( rem == 0 ) :
		return N
	else :
		return N - rem
if __name__ == ' _ _ main _ _ ' :
	N = 45
	K = 6
	print ( " Largest ▁ number ▁ smaller ▁ than ▁ or ▁ equal ▁ to " + str ( N ) + " that ▁ is ▁ divisible ▁ by " + str ( K ) + " is " , findNum ( N , K ) )