Fibonacci Calculator in C
Back to the Main Page

fibonacci.c

Calculates Fibonacci numbers.
My third real, from scratch c programme.

fibonacci count

will list the top count fibonacci.

e.g. fibonnaci 10

1
1
2
3
5
8
13
21
34
55

e.g. fibonacci -v 10

Count	Value
0	1
1	1
2	2
3	3
4	5
5	8
6	13
7	21
8	34
9	55
Combine with primes and you can get a list of fibonacci that are primes highlighted.

e.g. fibonnaci 10 | primes (note do not use the verbose output)

1 
1 
2 *
3 *
5 *
8 
13 *
21 
34 
55 

Source Code:

Back to the Main Page