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, 21.06.2019 15:00
Shryia read a 481 -page-long book cover to cover in a single session, at a constant rate. after reading for 1.5 hours, she had 403 pages left to read. how fast was shryia reading? pages per hour how long did it take her to read the entire book? hours plz i realy need this
Answers: 1
question
Mathematics, 21.06.2019 16:30
Which of these is and example of a literal equation? a) 6+30=6^2 b)3x-4y c)12=9+3x d)ax-by=k
Answers: 3
question
Mathematics, 21.06.2019 17:50
F(x)=x/2-2 and g(x)=2x^2+x-3 find (f+g)(x)
Answers: 3
question
Mathematics, 21.06.2019 22:10
Akitchen is 12 ft. by 14 ft. with 10 ft. high walls. how much would it cost to put vinyl flooring in this room? $8.80 per ft
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
English, 15.09.2021 09:00
question
Mathematics, 15.09.2021 09:00
question
Mathematics, 15.09.2021 09:00
question
Physics, 15.09.2021 09:00
question
History, 15.09.2021 09:00
question
Mathematics, 15.09.2021 09:00
question
Chemistry, 15.09.2021 09:00
Questions on the website: 13722361