0 1 1 3 5 8 13...
A number generated by adding previous two numbers produces Fibonacci series.
e.g :Here 8th number can be found by adding 6th number and 7th number.
printf("Enter the range upto Fibonacci Series to be printed: ");
In this program we are running the loop for num times
In loop we have taken sum to store the sum of previous two numbers,then print the number.Thus we get the required series of fibonacci numbers.
Here is the program to find Nth number in fibonacci series using while loop
printf("Enter the Nth Fibonacci number to be printed: ");
printf("%d number in fibonacci series is %d",num,fibo);
If it was useful to you, please '+1' it & share it on other social networks.