+ 1

How to make my code work

working on a temp converter for practice in java, and i can't seem to get the arithmetic right. the program will run fine but i keep getting the wrong answers when it converts. the code is posted on my page if anyone wants to look at, i'd really appreciate any help! thanks

15th Feb 2019, 11:10 PM
Kitchen Table
Kitchen Table - avatar
3 Réponses
+ 3
Hi. I see you got it working now. It runs also on SoloLearn if you give the parameters the right way, put each input in a separate line of the same input window. Just one comment to the code, it is enough to use only one Scanner and you can keep reading multiple times from it. Nice work! ;)
16th Feb 2019, 5:37 AM
Tibor Santa
Tibor Santa - avatar
+ 1
It will works outside of Solearn but not here because of Sololearn input issues
15th Feb 2019, 11:55 PM
Maneren
Maneren - avatar
0
Thanks for letting me know. Ill definitely play with it tonight and see if i can make 1 scanner work
19th Feb 2019, 9:49 PM
Kitchen Table
Kitchen Table - avatar