Pages
Home
Adsense Tips
Blogging Tips
SEO Tips
Wordpress
Thursday, February 27, 2014
Fibonacci Series
#include<stdio.h>
#include<conio.h>
#include<windows.h>
#include<string.h>
main()
{int a=0,b=1,c,n,i;
printf("Enter a Number");
scanf("%d", &n);
printf("Fibonacci Series is : %d+",b);
for(i=0;i<n;i++)
{c=a+b;
printf("%d+",c);
a=b;
b=c;
}
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment