Question: The code must be written for WinMIPS64. Please don't respond if you can't provide WinMIPS64 code. Fibonacci numbers are: 0,1,1,2,3,5,8,13,21,34,55,etc i.e. two consecutive numbers are
The code must be written for WinMIPS64. Please don't respond if you can't provide WinMIPS64 code.
Fibonacci numbers are: 0,1,1,2,3,5,8,13,21,34,55,etc i.e. two consecutive numbers are added to generate the next number. If the user enters 6, then the display should be 0, 1, 1, 2, 3, 5 i.e. 6 fibonacci numbers should be displayed. Write the code for WinMIPS64. Generate the numbers and display it. The sample C code is:
#include
main()
{
int x,y,z,num,count; printf( "Enter the number of fibonacci numbers > 2: "); scanf("%d",&num); x = 0; y = 1; count = 2; printf( "The numbers are: "); printf("%d %d ",x,y); while(count {
z = x + y; printf( "%d ",z); x = y; y = z; count++;
}
}
Again all examples can be used for manipulation. Note that the numbers displayed are integers. Provide a complete report of your code i.e. stall count, code size, CPI.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
