int Fibonacci(int n) { if(n==0||n==1) return 1; else return Fibonacci(n-1)+Fibonacci(n-2); }
The programmer's notebook is a reference for programmers. Here you can find code snippet's for VB.Net, C# .Net, WPF and many more...
Pages
Recursive Function in C to generate Fibonacci Numbers
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment