+ 1

How to make a simple program on fibnocci no in python

4th Sep 2018, 12:56 AM
Naveen
Naveen - avatar
2 Answers
+ 3
Recursive: n=int(input()) def fib(m): if m in [0,1]:return m return fib(m-1)+fib(m-2) print(fib(n))
4th Sep 2018, 1:01 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
4th Sep 2018, 2:53 AM
JME