fibonacci tag

4 questions


1 answers
82 views
0

1 answers
91 views
0
Python's novice question... Fibonacci sequence while statement

The problem is that when you put the number 10, you'll see a Fibonacci sequence that's less than 10...What I did was d = input (number: )def pibo(d): a = 0 b = 1 c = a + b while c < int(d) : c = a...

1 years ago

1 answers
145 views
0
Python recursive function Fibonacci sequence

n=int (enter the N value of the Fibonacci sequence F(N) --> : ))) def fibo(n): # Recursive functions require escape conditions. if n < 3 : return 1 else : return fibo(n-2) + fibo(n-1)# Find t...

1 years ago

1 answers
73 views
0
Fibonacci sequence recursive function algorithm question.

The Fibonacci sequence has a repetition that the sum of the total number and the total number is the next number, like 11 2 3 5 8 13, which is how this is coded as a recursive functionint Fib(int n){ ...

2 years ago

© 2024 OneMinuteCode. All rights reserved.