I am pretty confused about the concept of the Fibonacci series. I am trying to make a C++ program of Fibonacci series which asks the user to input 2 different numbers and number of iterations like input one = 9 and input two = 10, the number of interactions = 4, and the Fibonacci series should go on like 9, 10, 19, 29... I am trying to make it through for loop but I am pretty confused about what should I put into the for loop.
for (int i,j; i<it, j < it; ++i, ++j)
next = i+j;
i = j;
j = next;
I have done it like this where i = input one, j = input two, and it = number of iterations.