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.
An = An-1 + An-2
Where A1 = 1 and A2 = 1.