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 be5724d commit 6e33d6aCopy full SHA for 6e33d6a
app/src/main/java/hexlet/code/EvenGame.java
@@ -11,6 +11,7 @@ public static void gameLogic() {
11
Random rand = new Random();
12
int randNum = rand.nextInt(100);
13
System.out.println("Question: " + randNum);
14
+ System.out.print("Your answer: ");
15
String answer = sc.next();
16
if(randNum % 2 == 0 && answer.equals("yes")) {
17
System.out.println("Correct! " + Engine.userName + "\n");
0 commit comments