All Data For Free
Pages
Home
Watch Full WWE Episodes of Raw and Smackdown
Contact Us
Copyright Policy
Saturday, 10 December 2011
Write a program to print this Fibonacci Series :- 0,1,1,2,3,5,8,13,21,34 in c
#include
#include
main()
{
int x=0,y=1,z=0;
int i;
clrscr();
for(i=0;i<10;i++)
{
printf("%d,",z);
x=y;
y=z;
z=x+y;
}
getch();
}
OUTPUT
0,1,1,2,3,5,8,13,21,34
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment