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, 23.06.2019 22:50
What is an rss reader used for? for creating a user account on a social new site
Answers: 2
question
Computers and Technology, 24.06.2019 01:00
What are two ways to access the options for scaling and page orientation? click the home tab, then click alignment, or click the file tab. click the file tab, then click print, or click the page layout tab. click the page layout tab, or click the review tab. click the review tab, or click the home tab?
Answers: 2
question
Computers and Technology, 24.06.2019 04:30
Fall protection, confined space entry procedures, controlled noise levels, and protection from chemical hazards are some of the things that contribute to a safe and
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
Why should you evaluate trends when thinking about a career path?
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
History, 28.08.2019 12:10
question
Mathematics, 28.08.2019 12:10
question
Social Studies, 28.08.2019 12:10
Questions on the website: 13722367