Assignment #52 and Worst Number-Guessing Game Ever
Code
///Name: Tim Gibson
///Period: 6
///Project Name: Worst Number-Guessing Game Ever
///File Name: BadGuesser.java
///Date Finished: 10/13/15
import java.util.Scanner;
public class BadGuesser
{
public static void main ( String[] args )
{
Scanner keyboard = new Scanner(System.in);
int number, guess;
number = 7;
System.out.print( "TEH WORST NUBMER GESSING GAME EVAR!!!!!!\n\nI'M THNKING OF A NBR FROM 1-10. TRY 2 GESS! " );
guess = keyboard.nextInt();
if ( guess == number )
System.out.println( "\nLOL!!! U GOT IT! I CAN'T BELEIVE U GESSED IT WAS " + number + "!");
else
System.out.println( "\nWOOT! U SUXOR!!! I PWN JOO!!! IT WAS " + number + "!");
}
}
Picture of the output