human
Print ' K ' th least significant bit of a number | Function returns 1 if set , 0 if not.
Driver code.
Function call"
Solution in Python:
assistant
#Here is code to print ' K ' th least significant bit of a number and the other steps required.
 def LSB ( num , K ) :
	return bool ( num & ( 1 << ( K - 1 ) ) )
num , k = 10 , 4
res = LSB ( num , k )
if res :
	print 1
else :
	print 0