diff --git a/README.md b/README.md index af4f445..cddd598 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# Biometric-Library-Management-System \ No newline at end of file +# Biometric-Library-Management-System:Mini Project diff --git a/fib.cpp b/fib.cpp new file mode 100644 index 0000000..3950198 --- /dev/null +++ b/fib.cpp @@ -0,0 +1,21 @@ +//Fibonacci Series using Recursion +#include +using namespace std; + +int fib(int n) +{ + if (n <= 1) + return n; + return fib(n-1) + fib(n-2); +} + +int main () +{ + int n = 9; + cout << fib(n); + getchar(); + return 0; +} + +// This code is contributed +// by Akanksha Rai