input: Write a function to take an integer input from the user and print all the divisors of the number. If the input is invalid (such as non-integer), the function should print an appropriate error message and prompt the user to enter a valid integer.
  assert print_divisors(12)==True
  assert print_divisors(0)==True
  assert print_divisors(-5)==True
  assert print_divisors('abc')==False
  assert print_divisors(100)==True
output: def print_divisors(n):
      try:
          n = int(n)
          if n == 0:
              print("All numbers are divisors of 0.")
          else:
              for i in range(1, abs(n) + 1):
                  if n % i == 0:
                      print(i)
          return True
      except ValueError:
          print("Invalid input. Please enter a valid integer.")
          return False