C Program To Find Fibonacci Series | Learnt Hub

Hello friends, in this post today, you will learn how to find fibonacci series in C programming language.
Fibonacci Series
Before starting the program, we need to know about it that what is Fibonacci Series.

Fibonacci Series:-

The first two numbers in this series are 0 and 1. To find the next number one has to combine the two previous numbers.
For example:
0,1,1,2,3,5,8,13,21,34,55..........n.
  1. Operators
  2. Conditions Statements
  3. Loops
  4. Array
In the above series we need to explained this.
First two no are 0 and 1, sum of these are 1. Next is 1 and 1, sum of these are 2. Again is 1 and 2, sum of these are 3.

Code:


Output:

Enter the number of term: 5
Enter 1st and 2nd number:
1
2
Fibonacci series is: 3,5,8,13,21

Post a comment

0 Comments