Assignemnt #52

Code

                      /// Name: Holden Ganch
                      /// Period: 7
                      /// Program Name: fifty second Program
                      /// File Name: Worst.java
                      /// Date Finished: 11/11/2015
            
                      import java.util.Scanner;
          class Worst {
          
              public static void main(String[] args) {
              
                  Scanner keyboard = new Scanner(System.in);
                  
              double g, a;
              
              a = 8;
                  
               System.out.println("");
                System.out.println("");
              System.out.println("Welcome to the worst number guessing game ever");
               System.out.println("");
                System.out.println("");
              System.out.print("I'm thinking of a number  between 1 and 10. Try and guess! ");
              g = keyboard.nextDouble();
               System.out.println("");
                System.out.println("");
              
              if ( g == a )
              {
              System.out.println("");
               System.out.println("");
              System.out.println("You got it, I can't believe you actually got that it was " + a + "!!!!!");
               System.out.println("");
                System.out.println("");
              }
              else
              {
               System.out.println("");
                System.out.println("");
              System.out.println("You didnt get it and woulnd be good at the game 'what are the odds' the # was " + a);
               System.out.println("");
                System.out.println("");
              }
              
              }
          }

     
        
        
        
        
        
                           


    

Picture of the output

Assignment 52