Computer Science, asked by queensp73, 1 month ago

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 lakshanir2003
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 srnroofing1717
3

Answer:

hi akka I'm sherin do you remember me

Similar questions