Wednesday, October 27, 2010

Fibonacci series-c



void main()
{
int i=0,j=0,sum=1,n;
printf("Enter the number ");
scanf("%d",&n);
while(sum
{
printf("%d",sum);
i=j;
j=sum;
sum=i+j;
}

getch();
}

No comments:

Post a Comment