Geeks Talk

Prepare for your Next Interview




Evaluate fibonacci of numbers

This is a discussion on Evaluate fibonacci of numbers within the C and C++ forums, part of the Software Development category; Write a program that evaluate the fibonacci of numbers tells the nth place of the number NOTE : [This question was asked by basiliyos]...


Go Back   Geeks Talk > Software Development > C and C++

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 12-12-2006
Moderator
 
Join Date: Oct 2005
Posts: 711
Thanks: 1
Thanked 98 Times in 74 Posts
Lokesh M is on a distinguished road
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]
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-14-2006
Contributing Member
 
Join Date: Sep 2006
Location: bangalore, india
Posts: 1,007
Thanks: 0
Thanked 76 Times in 64 Posts
psuresh1982 will become famous soon enough
Re: Evaluate fibonacci of numbers

Using the following link fo find the code for fibonacci series....

URL:
C++ Programming : Program 36-A

--------------------
suresh
Reply With Quote
  #3 (permalink)  
Old 12-14-2006
Moderator
 
Join Date: Oct 2005
Posts: 711
Thanks: 1
Thanked 98 Times in 74 Posts
Lokesh M is on a distinguished road
Re: Evaluate fibonacci of numbers

Thank you suresh
Reply With Quote
  #4 (permalink)  
Old 08-31-2007
Junior Member
 
Join Date: Aug 2007
Location: Bangalore
Posts: 5
Thanks: 0
Thanked 3 Times in 3 Posts
chpushpakumar is on a distinguished road
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.
Reply With Quote
Reply

  Geeks Talk > Software Development > C and C++


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
3-Digit Numbers Puzzle admin Brainteasers 4 06-17-2008 05:58 AM
Triangular Numbers. jamesravid Brainteasers 2 11-06-2006 10:08 AM
Puzzle with numbers blenda Brainteasers 3 09-18-2006 03:36 PM
Can you find the numbers Remasri Brainteasers 1 08-17-2006 05:08 AM
How to Evaluate joel Interviews 1 08-06-2006 03:17 PM


All times are GMT -4. The time now is 05:11 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved