
-----------------------------------
Lebron23
Sat Jan 09, 2010 2:56 pm

I need Help
-----------------------------------
Write a program that lets you enter a number n and that calculates the nth Fibonacci number: 1,1,2,3,5,8,... Each new number is the sum of the last two.

Please help me with this on Ready to program Java

Thanks  :)

-----------------------------------
andrew.
Sat Jan 09, 2010 3:20 pm

RE:I need Help
-----------------------------------
1. This should be in the Java Help forum.
2. Ask yourself what the fibonacci sequence is and how to get it. Then, devise a way to achieve the same results programming. Hint: you can use loops, or recursion.
