My next dive into attempting to write a program deals with a Fibonacci-se-quence. I have started an outline to portray the ideas of how I think the flow of code should go to produce this program and have come across some questions.
I want my program to query the user for four separate integers. The first two are the beginning numbers of the sequence and the last two will indicate the starting point and ending point of the sequence.
My question is: if the user decides to start farther down the line, instead of the beginning number, then how should I put this together? Should I write a function that will work through the computations ( beginning from the first ) which will keep count of each loop through the computations and then return when it has reached the proper beginning line or should I try to compute an algorithm that will do the same and begin printing at said starting point.
the user inputs 1,1 for the sequence
the user wants the starting point for output to be 3 and end at 9.
the output should read:
I am also going to include the ratio of the current number of the sequence to the previous, but that didn't seem necessarily relevant to my question.
Sorry if this was poorly written. I am kind of scrambling through my thoughts here.