#Practicals 25: Fibonacci series using recursion

def fibo_recur(n):
   if n <= 1:
       return n
   else:
       return(fibo_recur(n-1) + fibo_recur(n-2))

nterms = int(input("How many terms? "))

if nterms <= 0:
   print("Plese enter a positive integer")

else:
   print("Fibonacci sequence:")
   for i in range(nterms):
       print(fibo_recur(i))
