Showing posts with label Fibonacci series program. Show all posts
Showing posts with label Fibonacci series program. Show all posts

Friday, March 7, 2014

C program to print Fibonacci series

Share Post:
In Fibonacci series, except first two terms in sequence every other term is the sum of two previous terms, For example 8 = 3 + 5 (addition of 3, 5). This sequence has many applications in mathematics and Computer Science.

#include<stdio.h>
#include<conio.h>
int main()
{
   int n, first = 0, second = 1, next, c;

   printf("Enter the number of terms\n");
   scanf("%d",&n);