How do I receive an input of a number in base 10? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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?

30th Nov 2020, 12:42 AM
jeferson wilian
jeferson wilian - avatar
3 Answers
+ 1
Welcome 🤗
30th Nov 2020, 9:26 PM
Davide
Davide - avatar
+ 1
30th Nov 2020, 2:26 AM
Davide
Davide - avatar
+ 1
Okay! Thanks!!
30th Nov 2020, 9:24 PM
jeferson wilian
jeferson wilian - avatar