************************************************************************/ #include <stdio.h> int main () { int a, b, c, i; a = 1; b = 1; for (i = 1; i <= 20 ;i ++) { printf (" %d", a); c = a + b; a = b; b = c; } printf ("\n"); return 0; }
And you wanted to say what?
Doesn't look like an embedded program!
Doesn't look like a program advanced enough that the rest of the world absolutely must get access to it!
And if you wanted people to know about the Fibonacci (not Fibanocci) sequence, shouldn't you write something about the origin or the use of Fibonacci numbers (such as relation to the golden ratio etc)?
And why not also emit N(0)?
Either the summary the OP gave is wrong or the code he gave is wrong.
I thought the Fibonacci series goes ...8,13,21... and not ...8,13,17... as stated.
Or both?
Well, the Fibanocci expansion is very, very similar to the Fibonacci series :)
at least in its first 8 terms...