Iterative Fibonacci Generator

Hello!

To view this page you need Microsoft Silverlight 3 plug-in.
Silverlight will enable your browser to understand complex Rich Internet Applications.
After installing (~10 seconds), you will be able to view and execute live algorithms.

Click here to download the plugin directly from Microsoft (4 MB)
If you want to learn more about MS Silverlight, take a look at this Wikipedia article.
Output
type in the input above and click 'Execute'
the result will be outputted here
Related Algorithms
Discussion
2
The results are wrong. Your generator generates the series 0, 1, 2, … but the Fibonacci series is defined as 1, 1, 2, 3, 5 … Furthermore, you don’t actually need to consider all those special cases. This comes automatically because the loop won’t be executed for small `n`.
27 months and 4 days ago by madrat.net
I assume you updated this version after madrat's comment. But still, why are we restricting our range to double (1476 in your code)? We can use BigInteger which will allow arbitrary length/size.
27 months and 3 days ago by ANaimi
login to leave a comment
Version 7
Version 1 by guest
0
Version 2 by guest
+1
Version 3 by guest
0
Version 4 by ANaimi
+1
Version 5 by guest
+1
Version 6 by SteG
+3
Version 7 by Professor
+1
Fibonacci numbers are a sequence of numbers named after Leonardo of Pisa. See http://en.wikipedia.org/wiki/Fibonacci_number

Code structure improved enable external calls.
27 months and 4 days ago
up down

implementations

7 versions available

rated by

one user - list?

viewed by

9 users - list?

favorited by

0 users - list?

last activity

27 months ago