fork download
  1. def retorna(valor, limite, soma):
  2. if valor > limite:
  3. return soma
  4. return retorna(valor + 1, limite, soma + valor)
  5. print(retorna(1, 5, 0))
  6.  
  7. #https://pt.stackoverflow.com/q/328197/101
Success #stdin #stdout 0.02s 27616KB
stdin
Standard input is empty
stdout
15