I need it done with this specific WinMips64 program(I shared it on my google dri
ID: 2080975 • Letter: I
Question
I need it done with this specific WinMips64 program(I shared it on my google drive below):
1) https://drive.google.com/open?id=0B-yy0y1yM_P0TjM3bzU1cHRmeFk
OR
2) https://drive.google.com/drive/folders/0B-yy0y1yM_P0VTJWd2NvYlNYdEE?usp=sharing
If you could share the code(in a from of text) from your created "xxxx.s" file it would be great!
Fibonacci numbers are: 0,1,1,2,3,5, 8,13, 21,34,55,etc 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 ie. 6 fibonacci numbers should be displayed. Generate the numbers and display it. The sample C code is #includeExplanation / Answer
#include <stdio.h>
main()
{
int x=0,y=1,z,num,f;
printf("enter the fibonacci count number greater than 2:");
scanf("%d",&num);
printf("FIBNOCCI SERIES IS:");
printf("%d%d",x,y);
for(z=2;z<num;z++)
{
f=x+y;
x=y;
y=f;
printf("%d",y);
}
}