Assignment #52 and The Worst Number Guessing Game ever
Code
/// Name: Trent Lane
/// Period: 6
/// Program Name: The Worst Number-Guessing Game Ever
/// Date Finished: 11/18/2015
import java.util.Scanner;
public class NumberGuessingGame
{
public static void main(String[] args)
{
Scanner keyboard = new Scanner(System.in);
int secretNumb = 7;
int guessNumb;
System.out.println("WORST NUMBR GUESSING GAME EVAR!!!!!");
System.out.println();
System.out.println("I'M THINKING OF A NBR BETWEEN 1-10! TRY 2 GESS!");
guessNumb = keyboard.nextInt();
System.out.println();
if (guess == secretNumb)
System.out.println("LOL! U GOT IT!!! I CANT BELIEVE YOU GUESSED IT WAS " + secretNumb + "!");
else
System.out.println("WOOT!!! U SUXOR! I PWN JOO! IT WAS " + secretNumber + "!");
}
}
Picture of the output