14th Jan 2023, 10:57 AM
Suraj
Suraj - avatar
2 odpowiedzi
+ 1
Nothing..
14th Jan 2023, 11:46 AM
Jayakrishna 🇮🇳
0
I guess you have to separate inputs with spaces or newlines. Eg: 5+7 might get consumed by the first nextInt() and produces an error because of the plus sign. When 5 + 7 or 5 + 7 will work.
14th Jan 2023, 11:49 AM
Lochard
Lochard - avatar