Write a program to print Fibonacci series in reverse order in java.
Answers
Answered by
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
Social Sciences,
2 months ago
Math,
4 months ago
Math,
4 months ago
Math,
9 months ago
Social Sciences,
9 months ago
Geography,
9 months ago