Hello,
First off, I know there are many code snippets out there that show how to calculate a Fibonacci number. What I need to do is the opposite. I am a student at Indiana Univ. and am struggling with this. All I'm asking is simply for help and suggestions. It will be much appreciated.
Here's what I have: I have a numeric up and down control that displays the numbers 3 to 50. When the user selects a number, and clicks on the Compute button, I need a messagebox that shows the Fibonacci number.
For example, if the user selects the number '6', then I should have a messagebox appear with the Fibonacci number 8, because 8 is the 6th integer in the sequence.
I am struggling with how to write code for this. Please bear with me as I am still new to VB.NET and am still learning.
Thanks for any and all advice you can give.
Jason
First off, I know there are many code snippets out there that show how to calculate a Fibonacci number. What I need to do is the opposite. I am a student at Indiana Univ. and am struggling with this. All I'm asking is simply for help and suggestions. It will be much appreciated.
Here's what I have: I have a numeric up and down control that displays the numbers 3 to 50. When the user selects a number, and clicks on the Compute button, I need a messagebox that shows the Fibonacci number.
For example, if the user selects the number '6', then I should have a messagebox appear with the Fibonacci number 8, because 8 is the 6th integer in the sequence.
I am struggling with how to write code for this. Please bear with me as I am still new to VB.NET and am still learning.
Thanks for any and all advice you can give.
Jason