input: Write a function to generate and print the Fibonacci series up to a user-specified number of terms. The function should prompt the user for input and print each number in the series separated by a space.
  
  
  def print_fibonacci():
      n = int(input("Enter the number of terms: "))
      a, b = 0, 1
      print("Fibonacci Series:", end=" ")
      print(a, b, end=" ")
      for i in range(2, n):
          c = a + b
          a, b = b, c
          print(c, end=" ")
      print()
  
  # Test cases
  print_fibonacci()
  # Expected output for input n=10:
  # Fibonacci Series: 0 1 1 2 3 5 8 13 21 34
  
  print_fibonacci()
  # Expected output for input n=5:
  # Fibonacci Series: 0 1 1 2 3
  
output: def print_fibonacci():
      n = int(input("Enter the number of terms: "))
      a, b = 0, 1
      print("Fibonacci Series:", end=" ")
      print(a, b, end=" ")
      for i in range(2, n):
          c = a + b
          a, b = b, c
          print(c, end=" ")
      print()