100 Most Important C# Programs
15. Program to print fibonacci series .
Code:
# include <stdio.h>
# include <conio.h>
main( )
{
int a=0,b=1,c=0,i;
clrscr( );
printf(“%d”,a);
printf(“\n%d”,b);
for (i=1; i<=10; i++)
{c
=a+b;
printf(“\n%d”,c);
a=b;
b=c;
}
getch( );
}