0
On the iterative Fibonacci algorithm how can one Write a MIPS program that generates the any numbers of the Fibonacci series as
On the iterative Fibonacci algorithm how can one Write a MIPS program that generates the any numbers of the Fibonacci series as specified by the user, that is, to generate the series 1, 1, 2, 3, 5, 8, 13, 21, 34 âŠâŠ.
7 Answers
0
I have an iterative Fibonacci algorithm which is to be written in MIPS to generate a program that represent a Fibonacci series like .....
0
I want it in Assembly language please
0
How is user input obtained?
int fibonacci(int n)
    int u = 0
int v = 1 Â Â Â Â
int t
    for int i in 2 .. n         t = u + v         u = v         v = t Â
0
For int i in 2....n
t=u + v
u=v
v=t