diff --git a/code/C++/fibonacci.cpp b/code/C++/fibonacci.cpp new file mode 100644 index 0000000..182830d --- /dev/null +++ b/code/C++/fibonacci.cpp @@ -0,0 +1,16 @@ +#include +using namespace std; + +int main() +{ + int n; + cin>>n; + int sum_ar[n]; + sum_ar[0]=1; + sum_ar[1]=1; + for(int i=2;i