C PROGRAM EXAMPLE FOR FIBONACCI SERIES:
What is Fibonacci series?
First two numbers of the fibonacci series is 0 and 1. From 3rd number onwards, the series will be the sum of previous 2 numbers.
Fibonacci series: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, etc
EXAMPLE C PROGRAM FOR FIBONACCI SERIES:
OUTPUT OF C PROGRAM FOR FIBONACCI SERIES:
Please enter the limit of the Fibonacci series : 10
Fibonacci series is: 0 1 1 2 3 5 8 13 21 34 |
0 comments:
Post a Comment