hi, you are careful but I think it's only small algorithm.
I think that:
Code:
f[0] = f[1] = 1;
for (i = 2 ; i< n ; i++)
  f[ i ] = f[i -1] + f[i-2 ];
scanf( f[n]);
what do you think ?