Prepare for your Next Interview
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]...
|
|||
|
Re: Evaluate fibonacci of numbers
Using the following link fo find the code for fibonacci series....
URL: C++ Programming : Program 36-A -------------------- suresh |
|
|||
|
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. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| 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 |