Computer Science, asked by siyonachatterjee234, 7 months ago

Write a program to print Fibonacci series in reverse order in java. ​

Answers

Answered by Anonymous
0

Answer:

Print Fibonacci Series in reverse order

Declare an array of size n.

Initialize a[0] and a[1] to 0 and 1 respectively.

Run a loop from 2 to n-1 and store. sum of a[i-2] and a[i-1] in a[i].

Print the array in the reverse order.

Similar questions