Question: Write a Fibonacci series for the first 10 numbers using Java. The first two seed numbers will be 0 and 1. Print the first 13

Write a Fibonacci series for the first 10 numbers using Java. The first two seed numbers will be 0 and 1.

Print the first 13 number of the series

0 1 1 2 3 5 8 13 21 34 55 89 144.

You will need to write your function. Print the first two seed numbers outside your for loop using

System.out.println(number1);

System.out.println(number2);

After this inside your function you will need to create a for loop that will contain the rest of the series.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!