Write a C Program For Fibonacci Series upto 100 by using while Statement

Engg.... | 01:31 | | Best Blogger Tips
Fibonacci_Series
Fibonacci Series:
  • Fibonacci Series is the Series in which Next Number is Sum of Previous Two Numbers.
  • Example: 0 1 1 2 3 5 8 13 21 34 ............and so on.
Statement of C Program: Write a program to show the Fibonacci Series upto 100:


#include<stdio.h>
#include<conio.h>
void main()


{
int a,b,c;
clrscr();
a=0;
b=1;
while(a<=100)
{
printf("\n%d" ,a);
c=a+b;
a=b;
b=c;
}
getch();
}
Output:
 0
 1
 1
 2
 3
 5
 8
 13
 21 
Please Share it! :)
Do you like this Story?

Get Free Email Updates Daily!

Follow us!

9 comments:

  1. hey can u give me the algorithm and flowchart for dis program???

    ReplyDelete
  2. Appreciation for nice Updates, I found something new and folks can get useful info about BEST ONLINE TRAINING

    ReplyDelete
  3. Hey Admin,
    Excellent article for the Fibonacci series of course this blog is doing a very good job of serving useful information. I'm proud to be a part of its Readers community.
    For the Fibonacci programs in different languange like C language,JAVA,C# must visit http://www.hhhprogram.com/2013/05/fibonaccci-series.html

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. http://www.notes99.com/2014/05/c-programming-language-fibonacci-series.html
    fibonacci series using goto statement

    ReplyDelete
  6. http://www.notes99.com/2014/04/c-programming-language-fibonacci-series.html fibomacci series using functions

    ReplyDelete