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:04
Me figure out the process to determine x you appreciate it : )
Answers: 1
question
Mathematics, 21.06.2019 12:30
Matteo makes raspberry punch. the table shows how many parts ginger ale and raspberry juice to use for a batch. raspberry punch parts ginger ale 2 parts raspberry juice 3 matteo decides to add one part of raspberry juice. what is the new ratio of ginger ale to raspberry juice?
Answers: 1
question
Mathematics, 21.06.2019 13:30
What is the exact volume of the cylinder (radius 13 in., height 30 in.)
Answers: 1
question
Mathematics, 21.06.2019 18:00
What is the upper quartile in the box plot?
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
Mathematics, 21.10.2020 07:01
question
Mathematics, 21.10.2020 07:01
question
Geography, 21.10.2020 07:01
question
Mathematics, 21.10.2020 07:01
Questions on the website: 13722363