This simple program calculates Fibonacci's numbers. The numbers were invented
by the Italian mathematician Leonardo Fibonacci in the 13th century. The formula
is:
f(0)=1, f(1)=1, f(n+2)=f(n)+f(n+1), where n is a non-negative integer.
This program was written in C by me, Joona Palaste. It is Copyrighted by me, but
is freely distributable.
The program calculates any Fibonacci's number that can fit into your memory. If
you have many megabytes, you can calculate even the 20-millionth number,
providing you have the time. =) The result can be written either into StdOut or
into a file on disk.
This is version 1.2. Version 1.1 still displayed large Fibonacci's numbers too
short. This has now been fixed.
|