+ 1
How do use one input for multiple purposes?
I'm trying to input a number once and use it in a math expression as well as print it later as a string. https://code.sololearn.com/c5CSAJrk4oqn/?ref=app
2 Answers
+ 2
put it in variable?
0
I'm not sure what that means. but I ended up scanning the number as a string and then separately converting it to a double by using Double.valueOf ().



