From e3f1d1d0acfd577053dc435b93217c66b9e1e9a7 Mon Sep 17 00:00:00 2001 From: Prabsimar Singh <31936615+Prabsimar@users.noreply.github.com> Date: Fri, 6 Oct 2023 21:50:51 +0530 Subject: [PATCH] SolutionByPrabsimar.cpp --- .../SolutionByPrabsimar.cpp | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Basic/Calculate Nth Fibonacci Number/SolutionByPrabsimar.cpp diff --git a/Basic/Calculate Nth Fibonacci Number/SolutionByPrabsimar.cpp b/Basic/Calculate Nth Fibonacci Number/SolutionByPrabsimar.cpp new file mode 100644 index 000000000..7951f9aab --- /dev/null +++ b/Basic/Calculate Nth Fibonacci Number/SolutionByPrabsimar.cpp @@ -0,0 +1,27 @@ +#include +using namespace std; + +int main() { + int n; + cout<<"Enter a number: "; + cin>> n; + + int a = 0; + int b = 1; + int c; + + cout<<"\n"<