Skip to content

Commit 5885857

Browse files
committed
upd Prime.java
1 parent 609bc5a commit 5885857

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ public static void gameLogic() {
1919
break;
2020
}
2121
}
22+
System.out.print("Your answer: ");
2223
String answer = sc.next();
2324
if (answer.equals("yes") && isPrime) {
24-
System.out.println("Correct!\n");
25+
System.out.println("Correct!");
2526
Engine.questionCounter++;
2627
} else if (answer.equals("no") && !isPrime) {
27-
System.out.println("Correct!\n");
28+
System.out.println("Correct!");
2829
Engine.questionCounter++;
2930
} else {
3031
System.out.println("Let's try again, " + Engine.userName + "!");

0 commit comments

Comments
 (0)