fork(9) download
  1. def fibonacci(n):
  2. if n <= 1:
  3. return n
  4. else:
  5. return fibonacci(n-1) + fibonacci(n-2)
  6.  
  7. resultado = fibonacci(5)
  8.  
  9. print(resultado)
Success #stdin #stdout 0.03s 27704KB
stdin
Standard input is empty
stdout
5