Fibbonacci series

int main() {
int f1 =0,f2=1,f;
for(int i=0;i<5;i++)
{
  f = f1 +f2;
  f1=f2;
  f2=f;
  printf("%d\t",f);
}
  return 0;
}


Comments

Popular posts from this blog

Finding the second largest in an array