Assignment #52 and WorstNumberGuessingGame
Code
/// Name: Jason Kim
/// Period: 7
/// Program Name: WorstNumberGuessingGame
/// File Name: WorstNumberGuessingGame.java
/// Date Finished:10/22/15
import java.util.Scanner;
public class WorstNumberGuessingGame
{
public static void main (String[] args)
{
Scanner keyboard = new Scanner(System.in);
int secretNumber = 4, number;
System.out.println("TEH WORST NUBMER GESSING GAME EVAR!!!!!!1!");
System.out.print("\nI\"M THKING OF A NBR FROM 1-1-. TRY 2 GESS! ");
number = keyboard.nextInt();
if ( number == secretNumber )
{
System.out.println("\nLOL!!! U GOT UT! U CANT BELIEVE U GESSED IT WAS " + secretNumber + "!");
}
else
{
System.out.println("\nWOOT! U SUXOR!!! I PWN JOO!!! IT WAS " + secretNumber + "!");
}
}
}
Picture of the output