C Armstrong NumberC Average of N NumbersC Biggest of Three NumbersC Common DivisorsC Composite NumberC Condense a NumberC Even NumberC Factorial of a NumberC Fibonacci SeriesC GCDC LCMC Leap YearC Multiplication TableC Number CombinationC Odd NumberC Palindrome NumberC Perfect NumberC Prime FactorC Prime NumberC Sum of DigitsC Swapping Two Numbers

C Array ProgramsC Converter ProgramsC Star Patterns ProgramC Number Patterns ProgramC Alphabet Patterns ProgramLast Updated:

A series of numbers in which each number (Fibonacci number) is the sum of the two preceding numbers, starting from 0 and 1, i.e., 0, 1, 1, 2, 3, 5, 8, 13, 21, and so on.

**Tips**: It is recommended to use our online Fibonacci Series calculator for better understanding.

In the following example, we will find the Fibonacci Series between 0 and 100.

C Compiler

#include <stdio.h>
int main()
{
int limit = 100;
int a = 0;
int b = 1;
int c = 0;
printf("Fibonacci series upto %d: \n", limit);
printf("%d %d", a, b);
while(c <= limit)
{
c = a + b;
a = b;
b = c;
if(c <= limit)
printf(" %d", c);
}
return 0;
}

In the following example, we will display the fibonacci series from 0 to any given limit.

C Compiler

#include <stdio.h>
int main()
{
int limit;
int a = 0;
int b = 1;
int c = 0;
printf("Enter a (int) limit: ");
scanf("%d", &limit);
printf("\nFibonacci series upto %d: \n", limit);
printf("%d %d", a, b);
while(c <= limit)
{
c = a + b;
a = b;
b = c;
if(c <= limit)
printf(" %d", c);
}
return 0;
}