Computer Science, asked by snjoshi71, 1 year ago

Assembly program to calculate nth element in fibonnacci series

Answers

Answered by Ayushgupta111111
1
#include<studio.h>
#include<conio.h>
void main()
{
int a=-1;b=1;n;i;
printf("enter the value of n");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
int s=a+b ;
printf("%d",s);
a=b;
b=s;
}
getch();
}

HimanshuSingh11111: Great, its correct
Similar questions