0

[SOLVED]I need help with this code

Line 18 does not run correctly, I don't know why. Somebody could help me? Thank you https://code.sololearn.com/cZPmIgpHd6Vy/?ref=app

7th Jul 2020, 1:46 PM
Emanuel Maliaño
Emanuel Maliaño - avatar
6 Answers
+ 2
Thank you all for your help, ~ swim ~ I will try to do that, I did not know that there was such a problem in java today I have learned something new. I am resuming learning in Java.
7th Jul 2020, 2:34 PM
Emanuel Maliaño
Emanuel Maliaño - avatar
0
I haven't used java in a long time, but as I can see, your program executes fine, you can print each input after taking it to ensure everything works smoothly, also be careful in online compilers to add the input correctly, here I tried your code and added the input sample I used, I hope I understood what you want https://code.sololearn.com/c45pKXm0H1IF/?ref=app
7th Jul 2020, 3:09 PM
Noura
Noura - avatar