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
Computer Science,
3 months ago
Computer Science,
3 months ago
Math,
7 months ago
Math,
7 months ago
Math,
11 months ago
Social Sciences,
11 months ago
Geography,
11 months ago