DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   VB.NET (http://www.daniweb.com/forums/forum58.html)
-   -   Help,Fibonacci numbers (http://www.daniweb.com/forums/thread35552.html)

lefraso Nov 17th, 2005 5:14 pm
Help,Fibonacci numbers
 
I would like to design a programm in visual basic.net meet the following requirements:

Fibonacci numbers Input limit is 15
Numbers are 0 1 1 2 3 5 8 13

The program must allow input limit
Display all generated Fibonacci numbers
The sum of all the Fibonnacci numbers

Anyone who can help me with this ,i will appreciate.

Danny.VBT Dec 2nd, 2005 1:21 am
Re: Help,Fibonacci numbers
 
I don't want to give you the exact answer but your going to need two temp variables to hold the last two numbers of the sequence, also another var to add each number. It's not a difficult application...the concept of temporary variables may be confusing at first.

Here's a few things off the top of my head that you'll need...

1.) Input Box
2.) Loop
3.) Temp. Variables
4.) Variable to act as a sum of fibonacci numbers.


All times are GMT -4. The time now is 8:20 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC