I need Help
Author |
Message |
Lebron23
|
Posted: Sat Jan 09, 2010 2:56 pm Post subject: 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 ![Smile Smile](http://compsci.ca/v3/images/smiles/icon_smile.gif) |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
andrew.
|
Posted: Sat Jan 09, 2010 3:20 pm Post subject: 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. |
|
|
|
|
![](images/spacer.gif) |
|
|