Assignment #52
Code
///jack newsom
///period 5
///program name NumberGuess
///filename NumberGuess.java
///date completed 10/1/15
import java.util.Scanner;
public class NumberGuess {
public static void main( String[] args)
{
Scanner numbot = new Scanner(System.in);
int secret = 4;
System.out.println("The worst number guessing game ever1!!11!!!");
System.out.println();
System.out.println("I''M THINKING OF A NBR FROM 1-10. TRY TO GESS!");
int guess = numbot.nextInt();
if ( guess == secret )
{
System.out.println("LOL U GOT IT I CANT BELEVE I GESSED IT WAS 4");
}
else
{
System.out.println("W00t u suX0r!!! i pwn J00! it was 4!");
}
}
}
Picture of the output