computing-fundamentals
C programs and question bank.
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment