i am in tenth grade and for an assignment i have to write a program that asks for a number and generate of terms in the Fibonacci sequence. sorry for being a noob. but i need that program
Printable View
i am in tenth grade and for an assignment i have to write a program that asks for a number and generate of terms in the Fibonacci sequence. sorry for being a noob. but i need that program
If your assignment is to write a program, what have you written so far? Post your code and your questions.Quote:
for an assignment i have to write a program
I'll give you a hint, here is the formula.
A_{n} = A_{n-1} + A_{n-2}
Where A_{1} = 1 and A_{2} = 1.