Feb-27-2019, 06:15 PM
You changed your code, the problem is now in line 7. The while loop should continue as long as the fib number is less than the_number_has_to_be_bigger_than, but it is using position_in_fib_sequence instead. So, the fib sequence is 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... Say I want the second fib number greater than 8. Your code will give me the second fib number greater than 2, which is 8.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures