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

Any help would be much appreciated

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.

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.

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

http://www.cplusplus.com/forum/general/93643/#msg502709

I don't think OP is having that issue. I don't think he has even gotten any code for this yet.

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.