C Programs for Fibonacci Series


Here's the C Program to print the complete Fibonacci series of n number (n = number entered by the user at runtime).

Also, in a different example, you can generate Fibonacci series up to a certain number, like 100 or 50 whatever you want.

In Fibonacci series, the next number is the sum of previous two numbers,

For Example : 0, 1 , 1, 2, 3, 5, 8, 13, 21 and so on..

C Programs for Fibonacci Series

1. Fibonacci Series Using For Loop

2. Fibonacci Series Using While Loop



Related:

Comments

Popular posts from this blog

Pseudocode to Check, Number is Odd or Even

How to Create Marksheet in C