user_input = int(input("Enter a number: ")) difference = abs(user_input - 100) if difference <= 10: print(user_input, "is close to 100") else: print(user_input, "is not close to 100")