def fibo(n):
if n==1:
return 0
elif n==2:
return 1
else:
return fibo(n-1)+fibo(n-2)
term=int(input('enter the number of terms'))
for i in range(term):
print(fibo(i),end=',')
print('...')
Comments
Post a Comment