Home   Easy-Code    Forum  Updater 
Twitter Facebook



Program to print fibonacci series using c

Critics Rating:

Users Rating:



    /* PROGRAM TO PRINT FIBONACCI SERIES */



#include <stdio.h>

main()

{

int f1=0,f2=1,f3,n,i;

clrscr();

puts("HOW MANY NUMBERS YOU WANT TO PRINT");

scanf("%d",&n);

puts("THE FIBONACCI SERIES IS ");

printf("%d\n%d\n",f1,f2);

for(i=0;i
{

f3=f1+f2;

printf("%d\n",f3);

f1=f2;

f2=f3;

}

getch();

}

Courtesy, Source, References & Regards: Kishore AVGK

While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright@2009-2011 by KuGuNi.com. All Rights Reserved.