#include<stdio.h>
void
main()
{
int
a,b,c,n,i;
clrscr();
a=0;
b=1;
i=3;
printf("Enter
the number of terms: ");
scanf("%d",&n);
printf("%d\n%d",a,b);
do
{
c=a+b;
printf("\n%d",c);
a=b;
b=c;
i=i+1;
}
while
(i<=n);
getch();
}
ReplyDeletenice article for beginners.thank you.
javacodegeeks
welookups