Introducing interesting programs for you
#include<stdio.h> main() { int k,r; int i=1,j=1,f; printf("Enter the number range : "); scanf("%d",&r); printf("fibonacci series :\n"); printf("%d\n%d\n",i,j); for(k=2;k<r;k++) { f=i+j; i=j; j=f; printf("%d\n",j); } }
No comments:
Post a Comment