input: Write a function to convert a positive integer to negative or vice versa using the bitwise NOT operator. The function should take an integer as input and return the converted integer. If the input is a positive integer, it should return the negative equivalent and if the input is a negative integer, it should return the positive equivalent. If the input is zero, it should return zero.
  assert convert_to_negative(5)==-5
  assert convert_to_positive(-5)==5
  assert convert_to_negative(0)==0
  assert convert_to_positive(0)==0
  assert convert_to_negative(10)==-10
  assert convert_to_positive(-10)==10
output: def convert_to_negative(n):
      return ~n + 1 if n > 0 else n
  
  def convert_to_positive(n):
      return ~n + 1 if n < 0 else n