Assignment #52: The Worst Number Guessing Game Ever
Code
/// Name: Kiran O'Farrell
/// Program Name: The Worst Number Guessing Game Ever
/// File Name: BadGuessingGame.java
/// Date Completed: 12/1/15
import java.util.Scanner;
public class BadGuessingGame {
public static void main (String[] args) {
Scanner keyboard = new Scanner(System.in);
int secret = 5;
int guess;
System.out.println("try to guess the secret number");
guess = keyboard.nextInt();
if (guess == secret) {
System.out.println("you guessed rite great job 10/10 would buy again");
}
else {
System.out.println("lol no it was 5 git gud scrub");
}
}
}
Picture of the output