Write a program to implement the Fibonacci series

This question is related to Aztec-Systems Interview

Editorial / Best Answer

baseersd  

  • Member Since Jun-2007 | Jul 27th, 2007


Code
  1.  
  2. #include
  3. "nEnter the limit for the series ");
  4. scanf("%d""%d ", sum);
  5. i = j;
  6. j = sum;
  7. sum = i + j;
  8. }
  9. getch();
  10. }
  11.  

Showing Answers 1 - 25 of 25 Answers

shankar555

  • Dec 25th, 2009
 

Code
  1.  

  2. #include<stdio.h>

  3. #include<conio.h>

  4. "nEnter the two values from which series should be started");

  5. scanf("%d%d""nnEnter the value upto which fibonacci series should be generated");

  6. scanf("%d""n%d",i);

  7. g=h;

  8. h=i;

  9. i=g+h;

  10. }

  11. getch();

  12. }

  Was this answer useful?  Yes

pravigupta

  • Aug 30th, 2010
 

//fibonacci series by number of terms


Code
  1.  

  2.  

  3. #include<stdio.h>

  4. #include<conio.h>

  5. "enter the no of terms:");

  6. scanf("%d""%d,%d,%d"",%d",sum);

  7. }

  8. getch();

  9. }

  10.  

  Was this answer useful?  Yes

mafias18

  • Oct 10th, 2010
 

Code
  1.  

  2. #include

  3. #include

  4. "enter the number");

  5. scanf("&d""%d Armstrongn""%d not Armstrongn",t);

  6. }

  7. getch();

  8. }

  Was this answer useful?  Yes

sathya

  • Aug 8th, 2011
 

Code
  1. #include<stdio.h>

  2. #include<conio.h>

  3. "Enter fibonacci series of nth term : ");

  4. scanf("%d""%d %d ""%d ",c);

  5. }

  6. getch();

  7. }

  8.  



  Was this answer useful?  Yes

MANUKUNDLOO

  • Sep 8th, 2011
 

Code
  1. span style="color: #ff0000;">"ENTER THE LIMIT OF THE SERIES: ");

  2.   scanf("%d""%d",sum);

  3.     }

  4.  getch();

  5. }

  Was this answer useful?  Yes

mahamad

  • Apr 19th, 2012
 

Code
  1. #include<stdio.h>

  2. #include<conio.h>

  3. "%d ""%d "

  Was this answer useful?  Yes

Using the computation by rounding method (see http://en.wikipedia.org/wiki/Fibonacci_number#Computation_by_rounding):

Code
  1. #include <stdio.h>

  2. #include <math.h>

  3. "fib_closed(%lu) = %.0f

  4. "

  Was this answer useful?  Yes

madhusudan dadhich

  • Jul 24th, 2012
 

limit:5
01123

  Was this answer useful?  Yes

n.m.sudesh kumar

  • Mar 20th, 2013
 

Code
  1. #include<stdio.h>

  2. #include<conio.h>

  3. "enter the value of n:");

  4. scanf("%d""the fibonacci series; %d

  5. ",pre);

  6. sum=pre+next;

  7. pre=next;

  8. next=sum;

  9. }

  10. getch();

  11. }

  Was this answer useful?  Yes

keerthi

  • Jun 7th, 2013
 

Code for fibonacci series

Code
  1. #include<stdio.h>

  2. "enter the size of the series");

  3. scanf("%d""%d",sum);

  4. i=j;

  5. j=sum;

  6. sum=i+j;

  7. }

  8. getch();

  9. }

  10.  

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions