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 609bc5a commit 5885857Copy full SHA for 5885857
app/src/main/java/hexlet/code/Prime.java
@@ -19,12 +19,13 @@ public static void gameLogic() {
19
break;
20
}
21
22
+ System.out.print("Your answer: ");
23
String answer = sc.next();
24
if (answer.equals("yes") && isPrime) {
- System.out.println("Correct!\n");
25
+ System.out.println("Correct!");
26
Engine.questionCounter++;
27
} else if (answer.equals("no") && !isPrime) {
28
29
30
} else {
31
System.out.println("Let's try again, " + Engine.userName + "!");
0 commit comments