Fibonacci Series in C++ Programming Language

 

FIBONACCI SERIES

                                A Series of a numbers in which each number is the sum of the Previous numbers.
Ex- 0, 1, 1, 2, 3, 5, 8, ..............

Program:

Fibonacci Series using while loop.

Syntex of while Loop

                // declaration part
                while (condition)
                {
                 // increment or decrement
                 }



Fibonacci Series

Output:

Output of Fibonacci Series




Comments

Popular posts from this blog

C The Basic Language