Fibonacci Series in C

The Fibonacci series is a well-known mathematical series, In this article, we are going to write a C program that prints n numbers of the Fibonacci series.

Fibonacci Series

Fibonacci series is characterized by recurrence relation, each term/element/number is the sum of two previous terms/element/number, Starting from 0 and 1. An example of the Fibonacci series is given below-

0,1,1,2,3,5,8,13,21,……..

C Program to Print Fibonacci Series

In C we can print the Fibonacci series either by using an iterative approach or using recursive approach

Iterative Approach to Print Fibonacci Series

We are going to print the Fibonacci series in C by using loops.

Output

Fibonacci Series in C

Fibonacci Series Using Recursion in C

Output

Fibonacci Series Using Recursion in C

Happy Coding

See Also

4 thoughts on “Fibonacci Series in C”

Leave a Comment