M
Mark McIntyre
That's what yours does, and mine does too -- I fixed discrepancies (ie:
if it says lf% instead of f%)
Firstly can you LEAVE SOME CONTEXT in your posts (like I did above).
Several people posted code ideas, there's no way to know whose code you
refer to. By leaving a few lines of relevant context, you allow people to
see what you're referring to.
Secondly, if the discrepancy you refer to is the %lf in scanf vs the %f in
printf, PLEASE read a C book, or at least your help files / manual - this
is NOT a discrepancy.