Fibonacci series

Fibonacci Series is one of the basic questions in Java., to check the programmer has a basic understanding of logic implementation in java.In Fibonacci series, the current number is always the sum of previous two numbers.Fibonacci series is initialized with 0 & 1.0, 1, (0+1)2, (1+2)3, (2+3)5, (3+5)8, (5+8)13….

Output

0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181

One thought on “Fibonacci series

Comments are closed.