C complete programming for b-tech students
Sunday, 17 July 2011
C programme for fibnocci series between limits
#include <stdio.h>
#include <conio.h>
main()
{
int i,n1,n2,f1-=0,f2=1,f3;
printf("enter limits");
scanf("%d%D"<&n1,&n2);
do
{
f3=f1+f2;
if((f3>=n1)&&(f3<=n2))
printf("%d\n",f3);
f1=f2;
f2=f3;
}
while(f3<=n2);
getche();
}
No comments:
Post a Comment
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment