Skip to content

Commit 5ae6537

Browse files
committed
upd GCD.java
1 parent 2f1cb04 commit 5ae6537

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/src/main/java/hexlet/code/GCD.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ public static void gameLogic() {
1515
int num2 = randNum.nextInt(100);
1616
System.out.println("Question: " + num1 + " " + num2);
1717
int answer = sc.nextInt();
18-
result = Engine.gcdGenerate(num1,num2);
18+
result = Engine.gcdGenerate(num1, num2);
1919
if (answer == result) {
2020
System.out.println("Correct!\n");
2121
Engine.questionCounter++;
2222
} else {
2323
System.out.println("Your answer: " + answer);
24-
System.out.println("'" + answer + "'" + "is wrong answer ;(. " +
25-
"Correct answer was" + "'" + result + "'");
24+
System.out.println("'" + answer + "'" + "is wrong answer ;(. "
25+
+ "Correct answer was" + "'" + result + "'");
2626
}
27-
if(Engine.questionCounter == 3) {
27+
if (Engine.questionCounter == 3) {
2828
System.out.println("Congratulations! " + Engine.userName);
2929
}
3030
}

0 commit comments

Comments
 (0)