Assignemnt #48 Worst Number Guessing Game
Code
///Name: JJ Deng
///Period: 6
///Program Name: The Worst Number Guessing Game ever
///File Name: WorstNumberGuessing.java
///Date Finished: 12/1/15
import java.util.Scanner;
public class WorstNumberGuessing
{
public static void main(String[] args)
{
int s, i;
s = 6;
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!. ");
i = keyboard.nextInt();
System.out.println("");
if (i == s)
{
System.out.println("GUD JOBB!");
}
else
{
System.out.println("W00T! U SUX0R!!! I PWN J00!!! IT WAS " + s );
}
}
}
Picture of the output