Assignemnt #52
Code
///colin hinton
///5th period
///Guess
///Guess.java
///10/23/2015
import java.util.Scanner;
class Guess
{
public static void main (String [] args)
{
Scanner keyboard = new Scanner(System.in);
int random, answer;
answer = 9;
System.out.print(" IM THINKING OF NUMBER 1-10, GUESS SCRUB!!! " );
random = keyboard.nextInt();
if ((random > 8) && (random < 10))
{
System.out.println("YOU GUESS IT WOOOOOOOOOOO I CAN'T BELIEVE YOU GUESSED " + answer);
}
else
{
System.out.println("LOL YOU TRIED NUB IT WAS ACTULLY " + answer);
}
}
}
Picture of the output