/* * C++ Program to Find Fibonacci Numbers using Iteration */ #include #include #include #define ll long long using namespace std; /* * Iterative function to find Fibonacci Numbers */ ll fibo_iter(int n) { int previous = 1; int current = 1; int next = 1; for (int i = 3; i <= n; ++i) { next = current + previous; previous = current; current = next; } return next; } /* * Main */ int main() { int n; while (1) { cout<<"Enter the integer n to find nth fibonnaci no.(0 to exit): "; cin>>n; if (n == 0) break; cout<