human
Unset least significant K bits of a given number | Function to return the value after unsetting K LSBs.
Create a mask.
Bitwise AND operation with the number and the mask.
Given N and K.
Function call"
Solution in Python:
assistant
#Here is code to unset least significant K bits of a given number and the other steps required.
 def clearLastBit ( N , K ) :
	mask = ( - 1 << K + 1 )
	N = N & mask
	return N
N = 730
K = 3
print ( clearLastBit ( N , K ) )