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