Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

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 Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 12-12-2006
Moderator
 
Join Date: Oct 2005
Posts: 1,037
Blog Entries: 75
Thanks: 3
Thanked 168 Times in 136 Posts
Lokesh M has a spectacular aura aboutLokesh M has a spectacular aura about
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,016
Thanks: 0
Thanked 91 Times in 72 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: 1,037
Blog Entries: 75
Thanks: 3
Thanked 168 Times in 136 Posts
Lokesh M has a spectacular aura aboutLokesh M has a spectacular aura about
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


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 12:12 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved