Assignment #52 Worst Number Guessing Game Ever
Code
/// Name: Lacey Reese
/// Period: 5
/// Program Name: WorstNumberGuessingGameEver
/// File Name: WorstNumberGuessingGameEver.java
/// Date Finished 11/19/2015
import java.util.Scanner;
public class WorstNumberGuessingGameEver
{
public static void main( String[] args )
{
Scanner keyboard = new Scanner(System.in);
int guess, number;
number = 1;
System.out.println( "GIT REDY 2 PLY TEH WORST NUMBER GESSIN GAME EVARRRRR" );
System.out.println();
System.out.print( "Im thinkin of a number from 1-10. Tri 2 gess it: " );
guess = keyboard.nextInt();
System.out.println();
if ( guess == number )
{
System.out.println( "WUTTTT U GOYT It " );
}
if ( guess > number )
{
System.out.println( "HAHA UR DUM it twas numbr "+ number + "!" );
}
if ( guess < number )
{
System.out.println( "WAYY off u dum dum eat gum gum it twas numbr " + number + "!" );
}
if ( guess < number )
{
System.out.println( "WAYY off u dum dum eat gum gum it twas numbr " + number + "!" );
}
}
}
Picture of the output
//