Search⌘ K

Example 32: Fibonacci Series

Explore how to implement the Fibonacci series in C by using loop control structures. Learn to print the first 10 terms where each number is the sum of the two preceding ones, starting from 1 and 1. This lesson helps you understand sequence generation and loop usage.

We'll cover the following...

Problem

Fibonacci series is a series in which each number is the sum of the two preceding ones, starting from 1 and 1.

F0=1F_{0} = 1 ...