diff --git a/fibonacci.cpp b/fibonacci.cpp new file mode 100644 index 0000000..2870e35 --- /dev/null +++ b/fibonacci.cpp @@ -0,0 +1,25 @@ +#include +using namespace std; + +void fib(int n){ + int t1=0; + int t2=1; + int nextTerm; + + for(int i=1;i<=n;i++){ + cout<>n; + fib(n); + + return 0; +}