Certainly! Below is a Python example code snippet:
def print_kth_lsb(num, k):
# Perform bitwise AND operation
if num & (1 << k):
print(f"The {k}th least significant bit of {num} is 1")
else:
print(f"The {k}th least significant bit of {num} is 0")
# Example usage
number = 25 # Binary representation: 11001
k_value = 3
print_kth_lsb(number, k_value)