Assignemnt #46
Code
/// Name: Sam Wilson
/// Period: 6
/// Program Name: guessgame
/// File Name: guessgame.java
/// Date Finished: 11/15/2015
import java.util.Scanner;
public class guessgame
{
public static void main(String[] args)
{
int s, i;
s = 3;
Scanner keyboard = new Scanner(System.in);
System.out.println("DA WURST GAME EVAR");
System.out.println();
System.out.print("I'M THINKIN' UF A NUMBA BETWEN 1-10. GUS ITT. ");
i = keyboard.nextInt();
System.out.println();
if (i == s)
{
System.out.println("YOU GAWT IT COWRECT, you see "+s+ " is a number that is often considered magical; creator, preserver, destroyer; spirit, mind, body; three is just a very historically worshipped number");
}
else
{
System.out.println("UR STUPID MY NAMBER WAS " + s );
}
}
}
Picture of the output