cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Fibonacci Sequence
Fibonacci Sequence
Feb 28, 2013 at 3:27pm UTC
LoopingBird
(9)
I was trying to create a code to calculate the nth number in a Fibonacci sequence, when the nth number is entered interactively.
Any help would be much appreciated
Feb 28, 2013 at 3:31pm UTC
ResidentBiscuit
(4459)
Where are you stuck at?
http://en.wikipedia.org/wiki/Fibonacci_number
This has the recursive definition right at the top. Just convert that into code and you're set.
Feb 28, 2013 at 3:53pm UTC
Smac89
(1727)
Might be that the values are getting too big. I tried this before on the forum and was only able to get to the 93rd fib before the variable type I was using began to degrade.
http://www.cplusplus.com/forum/general/93643/#msg502709
Feb 28, 2013 at 3:56pm UTC
ResidentBiscuit
(4459)
I don't think OP is having that issue. I don't think he has even gotten any code for this yet.
Feb 28, 2013 at 4:13pm UTC
LoopingBird
(9)
I wasn't sure where to start coding in the first place, So should I just convert the recursive numbers into code and that's me?
Topic archived. No new replies allowed.