• Java

    Find Fibonacci Series Of 1 to n

    A series of numbers in which each number ( Fibonacci number ) is the sum of the two preceding numbers. The simplest is the series 1, 1, 2, 3, 5, 8,…. etc. Here first two numbers are 0 and 1 taking by us by default. These two numbers are printed manually as part of series. After that the for loop will be executed until the length entered by user minus two, so that the two numbers that we use manually are subtracted from length. Then it will perform addition of these two numbers and print that number as part of…