input: def print_fibonacci(n: int):
      """Prints the Fibonacci series up to a given number.
      >>> print_fibonacci(10)
      0
      1
      1
      2
      3
      5
      8
      >>> print_fibonacci(5)
      0
      1
      1
      2
      3
      """
      a = 0
      b = 1
      if n < 0:
          print("Incorrect input")
      else:
          print(a)
          print(b)
          for _ in range(2, n):
              c = a + b
              a = b
              b = c
              print(c)
output:     if c > n:
          break