subject

Write a program that prints out the numbers in the Fibonacci sequence up until the max number. You can figure out the next number in the Fibonacci sequence by adding the two previous numbers. The first number is 1 and the second number is 1. To get the third number we take 1 + 1 = 2. To get the fourth number we take the second number plus the third number (1 + 2 = 3).

Here is a sample run of the program.

1
1
2
3
5
8
13
21
34
55
89
144
233
377
610
987

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
Ihave an iphone 8plus should i get another phone like samsung note 9 or s9 ? ?
Answers: 2
question
Computers and Technology, 23.06.2019 14:00
How are stop motion special effects in animated films created
Answers: 1
question
Computers and Technology, 24.06.2019 22:00
True or false technology is often discovered by accident
Answers: 2
question
Computers and Technology, 25.06.2019 01:00
Why was it important for the date format to be standardized by the international organization for standardization
Answers: 1
You know the right answer?
Write a program that prints out the numbers in the Fibonacci sequence up until the max number. You c...
Questions
question
Computers and Technology, 21.03.2020 21:36
question
Mathematics, 21.03.2020 21:38
question
Mathematics, 21.03.2020 21:39
question
Mathematics, 21.03.2020 21:39
question
Mathematics, 21.03.2020 21:39
Questions on the website: 13722360