0
How do I receive an input of a number in base 10?
I need to do this program, in which I need to receive to values in scientific notation and do some maths with them. But there is ths problem, when I try to do it, I receive this result -1,$. I tried to input this number, 2.34e+003, and I received a number like this 5.7e-315 when I asked for the program to print the primer number I typed in. How do I solve it?
3 odpowiedzi
+ 1
Welcome 🤗
+ 1
Check this: http://www.cplusplus.com/reference/cstdio/printf/
Here's a simple example, but e-315 is too small.
https://code.sololearn.com/cBRzF61wtQea/?ref=app
+ 1
Okay! Thanks!!