Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi!

My question is: how can I write down first 100 numbers using Fibonacci?
From 100 to 0.

Thx
Posted
Updated 6-Apr-11 9:12am
v2
Comments
Wild-Programmer 6-Apr-11 8:53am    
Did you try searching google? It will give faster result.
Sandeep Mewara 6-Apr-11 15:54pm    
Homework + No effort

 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 6-Apr-11 18:31pm    
Good enough, my 5.
I added similar one from a more fundamental source, mode useful info, please see.
--SA
Wild-Programmer 7-Apr-11 6:14am    
Thanks SA :)
And your advice below was hilarious.
I would write them down with a pencil that has an eraser, because if you make a mistake, you can correct it and move on with your list. (I assume that you're aware that 100 isn't in the sequence.)
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 6-Apr-11 18:32pm    
Quite a good idea, my 5 :-)
I added a bit more definitive advice though, please see... :-)
--SA
I am sorry but there is no quick question here. This is your college assignment, you should put some effort.

We expect you to put some time in trying the issue that you are facing and then some time in formulating the question while posting here.

Here is what is expected by enquirers:
1. TRY first what you want to do!
2. Formulate what was done by you that looks like an issue/not working.

Try them and tell if you face issues.
Members will be more than happy to help like this.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 6-Apr-11 18:30pm    
You are right, as always in such cases. My 5.
I added somewhat more definitive advice, please see. :-)
--SA
All you need is just definition, but here you will find a pseudo-code: http://en.wikipedia.org/wiki/Fibonacci_number[^].

Not doing it by yourself would be just a shame. (However, not finding it is already a shame.)

Get to work!

—SA
 
Share this answer
 
thank you all i managed to do it myself.
this is my second week working in .NET, and must work hard.
I promise no more stupid questions :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900