while ( f<20)
{
e = s;
s = f;
cout << f << " ";
f = e + s;
}
return 0;
}
i had also a fibonacci code and i put that, sory about the different variable names and i prefer directly put this code than saying that where you mistake in your code, also sorry for this.