Write a program to Find Fibonacci Series Using C Program


Just we are solving here a program to Find Fibonacci Series Using C Program?. This is a very easy program by follo some simple steps we can solve this problem.

#include<stdio.h> #include &lt;conio.h > void main ( ) { int x , y , z , range ; clrscr(); printf (“ Enter the number range” ) ; scanf (“ %d ”, &range ) ; x = 0 ; y = 1 ; printf ( “%d” , x) ; printf ( “%d” ,y ) ; for ( int i = 1 ; i< = range - 2 ; i++ ) { z = x + y ; printf ( “%d” , z) ; x=y; y=z; }
Enter two number! 10 10
The sum of two number is 20