Program to print n number of fibonacci series num=input("Enter how many terms of fibonacci series to be printed: ")a, b = 0, 1print afor i in range(1,num+1): print b a, b = b, a+b OUTPUT : Enter the range upto which the fibonacci series is to be printed : 10011235813213455 Enter the range upto which the fibonacci series is to be printed : 1101123581321345589
No comments