From 82b1767881633da304636d4760ac017c9a71713a Mon Sep 17 00:00:00 2001 From: NEVIL THOMAS <35942950+nevil13thomas@users.noreply.github.com> Date: Thu, 31 Oct 2019 20:36:26 +0530 Subject: [PATCH 1/2] Create fib.cpp --- fib.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 fib.cpp 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 From ecceec1b4a84422fb3d3f8050f16ad1f26e8ba8d Mon Sep 17 00:00:00 2001 From: NEVIL THOMAS <35942950+nevil13thomas@users.noreply.github.com> Date: Thu, 1 Oct 2020 18:55:24 +0530 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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