Feb-28-2019, 07:32 PM
That's because 5 is a fibonacci number. You want the < on line 7 to be a <=, so that coming out of that loop the current fib number is guaranteed to be larger than the number provided.
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