Fibonacci Series in c
Basic Concept Behind Fibonacci series :-
In mathematics, the Fibonacci numbers or Fibonacci series or Fibonacci sequence are the numbers in the following integer sequence:
- By definition, the first two numbers in the Fibonacci sequence are 0 and 1, and each subsequent number is the sum of the previous two.In mathematical terms, the sequence Fn of Fibonacci numbers is defined by the recurrence relationwith seed values[
- C program implementation of Fibonacci Series
 - #include<stdio.h>
 - #include<conio.h>
 - void main()
 - {
 - int a=0,b=1,c,i,n;
 - clrscr();
 - printf("Enter no of term:");
 - scanf("%d",&n);
 - printf("Fibonoci Series:\n");
 - printf("%d\n\n",a);
 - printf("%d\n\n",b);
 - for(i=0;i<n;i++)
 - {
 - c=a+b;
 - a=b;
 - b=c;
 - printf("%d\n\n",c);
 - }
 - getch();
 - }
 
 

Comments
Post a Comment