Back To C Loops Index
//program to print first 1 to 10 terms of fibonicci series using while statement #include
#include
void main() { int a,b,c,i; a=1; b=1; i=2; clrscr(); printf("%d\n",a); printf("%d\n",b); while(i<=10) { c=a+b; printf("%d\n",c); a=b; b=c; i++; } getch(); }