0

#include <stdio.h>
int main (void)
{
int sum,loop,range, ist,second;
ist=0;
second = 1;
printf ("Enter Range Of FIBONACCI Series");
scanf ("%d",&range);
printf("FIBONACCI Series is = %d ",second);
for(loop=2;loop<=range;loop++)
{
sum=ist+second;
ist=second;
second=sum;
printf(" %d ",second);
}
return 0;
}

Watch The Picture So that you can easily under stand

 

Post a Comment

 
Top