C program to find fibonacci series.

Problem statement

Write a program to take a number from user as an limit of a series and print Fibonacci series upto given input.

What is meant by Fibonacci series or sequence?

The Fibonacci sequence is a series where the next term is the sum of previous two terms. The first two terms of the Fibonaccii sequence is 0 followed by 1.

For example:

Here first two numbers 0 and 1 are same. Then 3rd term is an addition of 2nd and 1st term i.e. 0+1 = 1.
Then 4th term is an addition of 3rd and 2nd term i.e. 1+2 = 3. In this way, next term is sum of previous terms and we get Fibonacci series.

Program to find Fibonacci series up to given number



Fibonacci Series up to N number of terms


Help others by sharing the content!

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.