Program To find Fibonacci Series January 01, 2018 Programing In C No comments #include<conio.h> #include<stdio.h> void main() { int sum,a=0,i,j,n; clrscr(); printf("Enter the value of 'n' to generate the fibonacci series"); scanf("%d",&n); printf("%d",a); printf("%d",j); for(i=0;i<n;i++) { sum=a+j; printf("%d",sum); a=j; } getch(); } Output Enter the value of 'n'=9 0 1 1 2 3 5 8 13 ........... Share This: Facebook Twitter Google+ Stumble Digg Email ThisBlogThis!Share to XShare to Facebook
0 comments:
Post a Comment