input: Write a function to print the Fibonacci series up to a given number `n`. The function should iterate through the range of 0 to `n` and print each number in the series. If `n` is negative, it should print "Incorrect input".
  
  def print_fibonacci(n):
      if n < 0:
          print("Incorrect input")
          return
      a, b = 0, 1
      if n == 0:
          print(a)
      elif n == 1:
          print(a)
          print(b)
      else:
          print(a)
          print(b)
          for _ in range(2, n + 1):
              c = a + b
              print(c)
              a, b = b, c
  
  assert print_fibonacci(-1)
  assert print_fibonacci(0)
  assert print_fibonacci(1)
  assert print_fibonacci(5)
output: def print_fibonacci(n):
      if n < 0:
          print("Incorrect input")
          return
      a, b = 0, 1
      if n == 0:
          print(a)
      elif n == 1:
          print(a)
          print(b)
      else:
          print(a)
          print(b)
          for _ in range(2, n + 1):
              c = a + b
              print(c)
              a, b = b, c