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, ..............
Here,
0+1=1
1+1=2
1+2=3
2+3=5
..........
..........
Program:
 |
Fibonacci Series in C Language |
Here,
1) #include<stdio.h> and #include<conio.h> are headers file in C.
2) int main() is the function where code is executed.
3) "\t" is space where it takes 4 spaces.
.................................................
Output:
 |
Output of Fibonacci Series
|
Here, user enter limit of 5 and print Fibonacci Series upto 5 series.
Comments
Post a Comment