### HitmanBBa's blog

By HitmanBBa, history, 3 years ago, ,

Hi everyone.

I hope you're having a good day.

As you see in the picture when I read double using scanf "%lf" specifier it's ok, but when I'm trying to print double using printf "%lf" specifier, I got zero as result, but when I use "%f" floating-point specifier give me the right result, can any one help me with this problem and tell me why?

My IDE: Code::Blocks 13.12

My compiler: GNU GCC Compiler.

Thanks in advance :D

•
• +7
•

 » 3 years ago, # |   +6 Can I know why downvotes !!! If you don't know the answer just ignore it.
»
3 years ago, # |
Rev. 4   0

•  » » 3 years ago, # ^ | ← Rev. 2 →   0 I see many codes uses "%lf" specifier for printing, not "%f" but why printf("%lf", x); don't work??