Assignemnt #52
Code
/// Name: Sam Menar
/// Period: 6
/// Program Name: Number Guessing Game
/// File Name: NumberGuessingGame.java
/// Date Finished: 11/20/15
import java.util.Scanner;
public class NumberGuessingGame
{
public static void main( String[]args )
{
int number, guess;
number = 2;
Scanner keyboard = new Scanner(System.in);
System.out.println("TEH WORST NUBMER GESSING GAME EVAR!!!!!!1!");
System.out.println(" ");
System.out.print("I\"M THKING OF A NBR FROM 1-10. TRY 2 GESS! ");
guess = keyboard.nextInt();
System.out.println(" ");
if ( guess == number )
{
System.out.println("GR8 JOB!!!1 UR NOT A DUBM RTARD!!!");
}
else
{
System.out.println("WAY TO GO U RTARD!!! U GOT IT RONG!!");
}
}
}
Picture of the output