C-programming - Fibbonaci series, C program to find fibbonaci series
Fibbonaci series
This program calculates the fibonacci series of a number. the number can be got as input at run time using scanf statement.#include<stdio.h> #include<conio.h> int main() { int i,a,f1=0,f2=1,f3=0; for(i=0; i<5; i++) { f3=f1+f2; printf("%d\n",f1); f1=f2; f2=f3; } getch(); }
output
0 1 1 2 3 5 8
The topic on C-programming - Fibbonaci series is posted by - Math
Hope you have enjoyed, C-programming - Fibbonaci seriesThanks for your time