Assignemnt #52 and The Worst Number Game Ever
Code
///Name: Mark Katz
///Period: 6
///Program Name: The Worst Number Guessing Game ever
///File Name: numbergame.java
///Date Finished: 10/15/15
import java.util.Scanner;
public class numbergame
{
public static void main(String[] args)
{
int s, i;
s = 6;
Scanner keyboard = new Scanner(System.in);
System.out.println("LE WURST GAM EVR");
System.out.println("");
System.out.print("iM TINKIN' UF A NUMBA BTWEN 1-10. GES ITT. ");
i = keyboard.nextInt();
System.out.println("");
if (i == s)
{
System.out.println("GUD JOBB!");
}
else
{
System.out.println("U SUK! MY NUMBA WAZ " + s );
}
}
}
Picture of the output