Cursos
Iniciar sesiónComenzar a aprender IA
Cursos
Iniciar sesiónComenzar a aprender IA
+ 1

How to make a simple program on fibnocci no in python

python
4th Sep 2018, 12:56 AM
Naveen
Naveen - avatar
2 Respuestas
+ 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
0
non recursive: https://code.sololearn.com/cwwMCakp1rYd/?ref=app
4th Sep 2018, 2:53 AM
JME

¿Tienes a menudo preguntas como esta?

Aprende gratis de forma más eficaz

  • Introducción a Python

    7,1M de estudiantes

  • Introducción a Java

    4,7M de estudiantes

  • Introducción a C

    1,5M de estudiantes

  • Introducción a HTML

    7,5M de estudiantes

Ver todos los cursos
En tendencia hoy
Is anyone else experiencing this Sololearn issue?
0 Votes
Best language?
0 Votes
solo learn program issue - iPhone?
1 Votes
How do I keep myself motivated in coding
0 Votes
Anyone have song names? Comment your favorites here for a project im working on
0 Votes
Bro can you fix yt error?
0 Votes
Learn - multiple choice course questions display in one box making it impossible to continue
1 Votes
Sql practice
0 Votes
I want to know how to make an Payment App like what I need to learn I need some guidance
0 Votes
Bug in Completing AI Practice
0 Votes