FIBONACCI SERIES IN C
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a=0, b=1, c=0, i;
for(i=1; i<=10; i++)
{
printf("%d\n",c);
a=b;
b=c;
c=a+b;
}
getch();
}
----------------------------
OUTPUT
----------------------------
0
1
1
2
3
5
8
13
21
34
0 Comments