#include<conio.h>
#include<stdio.h>
int main()
{
int max,n1,n2,i;
printf("\n Enter a Range=");
scanf("\n%d",&max);
n1=0;
n2=1;
printf("\n%d\n%d",n1,n2);
for(i=1;i<max;i=i+2)
{
n1=n1+n2;
n2=n1+n2;
printf("\n%d\n%d",n1,n2);
}
getch();
return(0);
}
No comments:
Post a Comment