Assignemnt #52 - Game

Code

    /// Name: Caelan Dorstad
    /// Period: 6
    /// Program Name: Game
    /// File Name: Game.java
    /// Date Finished: 10/29/2015
    
    import java.util.Scanner;
    
    public class Game{
        public static void main(String[] args){
            Scanner keyboard = new Scanner(System.in);
            int guess;
            
            System.out.println("GAME!");
            System.out.println();
            System.out.print("GEUSS A NUBMER FROM 1-10!! ");
            guess = keyboard.nextInt();
            System.out.println();
            
            if (guess == 2){
                System.out.println("GOTEMMMMMMMMMMMM IT WAS 2!!!");
            }
            
            else if (guess > 10){
                System.out.println("YOU FOOL SELECT A NUMBER BETWEEN 1 - 10!!!");
            }
            
            else {
                System.out.println("YOUR WRONG IT WAS 2!!");
            }
        }
    }
    

Picture of the output

Assignment 39