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
Vous avez souvent des questions comme celle-ci ?
Apprenez de maniĂšre plus efficace, gratuitement :