-
Moderator
Evaluate fibonacci of numbers
Write a program that evaluate the fibonacci of numbers tells the nth place of the number
NOTE : [This question was asked by basiliyos]
-
Contributing Member
Re: Evaluate fibonacci of numbers
Using the following link fo find the code for fibonacci series....
URL:
C++ Programming : Program 36-A
--------------------
suresh
-
Moderator
Re: Evaluate fibonacci of numbers
-
Junior Member
Re: Evaluate fibonacci of numbers
main()
{
int i=1,m,j=1,n,k;
clrscr();
scanf("%d",&n);
for(m=1;m<=n-2;m++)
{
i=j;
j=k;
k=i+j;
}
printf("%d",k);
getch();
}
At last we have nth value of fibonacci in k.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules