# Number series
# Fibonacci series
print("Fibonacci series : ")
Num_of_terms = int(input("Enter number of terms : "))
f1 = -1
f2 = 1
for i in range(0,Num_of_terms,1):
term = f1+f2
print(term, end=" ")
f1 = f2
f2 = term
Don't be a silent reader... Leave your comments...Anu
No comments:
Post a Comment
Don't be a silent reader...
Leave your comments...
Anu