I need it done with this specific WinMips64 program(I shared it on my google dri
ID: 3864615 • 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 a copiable text) from your created "xxxx.s" file it would be great!
P.S. "xxxx.s" files can be edited with Notepad program. I use Notepad++ for easier spacing.
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
Code 1:
1. Write a program to generate the Fibonacci series in c
2. Write a program to print Fibonacci series in c
3. Basic c programs Fibonacci series
4. How to print Fibonacci series in c
5. How to find Fibonacci series in c programming
6. Fibonacci series in c using for loop
#include<stdio.h>
int main(){
int k,r;
long int i=0l,j=1,f;
//Taking maximum numbers form user
printf("Enter the number range:");
scanf("%d",&r);
printf("FIBONACCI SERIES: ");
printf("%ld %ld",i,j);//printing firts two values.
for(k=2;k<r;k++){
f=i+j;
i=j;
j=f;
printf(" %ld",j);
}
return 0;
}
Sample output:
Enter the number range: 15
FIBONACCI SERIES: 0 1 1 2 3 5 8 13 21 34 55 89 144 233 377
Code 2:
1. Fibonacci series using array in c
2. Fibonacci series program in c language
3. Source code of Fibonacci series in c
4. Wap to print Fibonacci series in c
#include<stdio.h>
int main(){
int i,range;
long int arr[40];
printf("Enter the number range: ");
scanf("%d",&range);
arr[0]=0;
arr[1]=1;
for(i=2;i<range;i++){
arr[i] = arr[i-1] + arr[i-2];
}
printf("Fibonacci series is: ");
for(i=0;i<range;i++)
printf("%ld ",arr[i]);
return 0;
}
Sample output:
Enter the number range: 20
Fibonacci series is: 0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181
Code 3:
1. Fibonacci series in c using while loop
2. C program to calculate Fibonacci series
3. C program to display Fibonacci series
4. Fibonacci series in c with explanation
5. C code to generate Fibonacci series
#include<stdio.h>
int main(){
int k=2,r;
long int i=0l,j=1,f;
printf("Enter the number range:");
scanf("%d",&r);
printf("Fibonacci series is: %ld %ld",i,j);
while(k<r){
f=i+j;
i=j;
j=f;
printf(" %ld",j);
k++;
}
return 0;
}
Sample output:
Enter the number range: 10
Fibonacci series is: 0 1 1 2 3 5 8 13 21 34
Code 4:
1. Sum of Fibonacci series in c
#include<stdio.h>
int main(){
int k,r;
long int i=0,j=1,f;
long int sum = 1;
printf("Enter the number range: ");
scanf("%d",&r);
for(k=2;k<r;k++){
f=i+j;
i=j;
j=f;
sum = sum + j;
}
printf("Sum of Fibonacci series is: %ld",sum);
return 0;
}
Sample output:
Enter the number range: 4
Sum of Fibonacci series is: 4