We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5508e36 commit 6372920Copy full SHA for 6372920
app/src/main/java/hexlet/code/Calc.java
@@ -15,7 +15,7 @@ public static void gameLogic() {
15
int randMathSymbol = randNum.nextInt(3);
16
int num1 = randNum.nextInt(100);
17
int num2 = randNum.nextInt(100);
18
- System.out.println("Question: " + num1 + mathSymbols[randMathSymbol] + num2);
+ System.out.println("Question: " + num1 + " " + mathSymbols[randMathSymbol] + " " + num2);
19
result = switch (mathSymbols[randMathSymbol]) {
20
case '+' -> num1 + num2;
21
case '-' -> num1 - num2;
0 commit comments