def fib(n): a=0 b=1 if n ==1: print (a) else: print (a) print (b) for i in range (2,n): c=a+b a= b b=c print (c)fib (5)
Not registered? Create an account
Forgot Password?
Already a registered user? Login