From 12ab74fbd70398c04e706d1ece06d179324e084e Mon Sep 17 00:00:00 2001 From: Bavleen Kaur <47499446+bavkaur@users.noreply.github.com> Date: Fri, 6 Oct 2023 21:36:33 +0530 Subject: [PATCH] SolutionByBavleen.cpp --- .../SolutionByBavleen.cpp | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Basic/Calculate Nth Fibonacci Number/SolutionByBavleen.cpp diff --git a/Basic/Calculate Nth Fibonacci Number/SolutionByBavleen.cpp b/Basic/Calculate Nth Fibonacci Number/SolutionByBavleen.cpp new file mode 100644 index 000000000..20621f142 --- /dev/null +++ b/Basic/Calculate Nth Fibonacci Number/SolutionByBavleen.cpp @@ -0,0 +1,25 @@ +#include +using namespace std; + +int main() { + int num; + cout<<"For Fibonacci"; + cout<<"\nEnter the number: "; + cin>> num; + + int a = 0; + int b = 1; + int c; + + cout<