write a program to print fibonacci series in python
Kathik use u r old acc Karthik077777 adhuku na dha munadiye inbox paniruken use that acc
Answers
Answered by
3
def fib(n):
a , b = 1,1 # F(1), F(2)
print(a)
while b<=n:
a, b = b, a+b
print(a)
if __name__ == '__main__':
import sys
N = int(sys.argv[1])
fib(20)
Explanation:
if you want to remove duplication you need to use memoization
output:
1 1 2 3 5 8 13
Answered by
3
Answer:
hi akka I'm sherin do you remember me
Similar questions
Math,
22 days ago
English,
22 days ago
English,
1 month ago
Physics,
8 months ago
Social Sciences,
8 months ago