subject
Mathematics, 30.06.2020 02:01 Tayannamorgan2373

The Fibonacci numbers are the numbers \[ 1,1,2,3,5,8,13,21,34\ldots \] where the first two numbers are 1 and 1, and each number after that is the sum of the two previous numbers. (So $2 = 1+1$, $3 = 2+1$, and so on.) Write an algorithm, in English, that takes a positive integer $n$ as input and then outputs the $n$th Fibonacci number. For example, if we input to the algorithm $n=2,$ your algorithm should output 1. If we input $n=6,$ your algorithm should output 8. Remember that an algorithm should consist of a series of unambiguous steps. Use variable names to identify what values you are referring to. You can assume that the computer can do basic arithmetic.

ansver
Answers: 2

Another question on Mathematics

question
Mathematics, 20.06.2019 18:02
What is the unit rate to: a 13-ounce package of pistachios costs $5.99.
Answers: 1
question
Mathematics, 21.06.2019 14:30
In trapezoid efgh, m∠hef=(4x2+16)∘ and m∠gfe=(5x2+12)∘. find the value of x so that efgh is isosceles.
Answers: 1
question
Mathematics, 21.06.2019 15:30
For one history test, keith had to answer 40 questions. of these 40 questions, keith answered 28 of them correctly. what percent did keith get on his history test? round your answer to the nearest tenth if necessary
Answers: 1
question
Mathematics, 21.06.2019 20:00
Pepe and leo deposits money into their savings account at the end of the month the table shows the account balances. if there pattern of savings continue and neither earns interest nor withdraw any of the money , how will the balance compare after a very long time ?
Answers: 1
You know the right answer?
The Fibonacci numbers are the numbers \[ 1,1,2,3,5,8,13,21,34\ldots \] where the first two numbers a...
Questions
question
History, 08.03.2020 04:10
question
Mathematics, 08.03.2020 04:12
question
Mathematics, 08.03.2020 04:12
question
Engineering, 08.03.2020 04:13
question
World Languages, 08.03.2020 04:14
Questions on the website: 13722361