Lets type...
Before typing please share this website and increase this blog views.
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c,i,n;
clrscr();
a=0;
b=1;
printf("Enter the number");
scanf("%d",&n);
for(i=0;i<n;i++)
{
c=a+b;
printf("%d\n",c);
a=b;
b=c;
}
getch();
}
Try this program and enjoy.
No comments:
Post a Comment