input: Write a function to print Fibonacci series up to a given number. The function should take an integer `n` as input and print all Fibonacci numbers from 0 to `n`. If `n` is less than 0, the function should print "Incorrect input".
  def print_fibonacci(n):
      if n < 0:
          print("Incorrect input")
          return
      a, b = 0, 1
      print(a, end=" ")
      if n > 0:
          print(b, end=" ")
      while b <= n:
          a, b = b, a + b
          if b <= n:
              print(b, end=" ")
  
  assert print_fibonacci(10) == None  # Output should be: 0 1 1 2 3 5 8
  assert print_fibonacci(-5) == None  # Output should be: Incorrect input
output: def print_fibonacci(n):
      if n < 0:
          print("Incorrect input")
          return
      a, b = 0, 1
      print(a, end=" ")
      if n > 0:
          print(b, end=" ")
      while b <= n:
          a, b = b, a + b
          if b <= n:
              print(b, end=" ")