C++ Codes
Algorithms
Algorithm Analysis in C++
Beginners
Code Snippets
Graphics
Data Structures
File Manipulation
Games
Mathematics
Miscellaneous
Visual C++ Library
C++ > Algorithms sample source codes
A C++ Program to computes the n_th term of the fibonacci series using
A C++ Program to computes the n_th term of the fibonacci series using Divide and Conquer Strategy. Code : # include
# include
//------------------------ Function rototypes ------------------------// const long fibonacci(const int); //----------------------------- main( ) -------------------------------// int main() { clrscr( ); int number; cout<<" Enter the number ( 1 - 25 ) = "; cin>>number; number=((number>25)?25:number); cout<<" The "<
Privacy Policy
|
Link to Us
|
Links