File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
app/src/main/java/hexlet/code Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments