//FIBONACCI SERIES #include #include void main() { int n,a=0,b=1,c,i=0; clrscr(); printf("\nENTER ANY NUMBER n : "); scanf("%d",&n); while((a+b)<=n) { c=a+b; printf(" %d",c); a=b; b=c; i++; } getch(); } /* Output ENTER ANY NUMBER n : 8 1 1 2 3 5 8 */