Advertisement
CamiloCastilla

Untitled

Dec 11th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.68 KB | None | 0 0
  1. package com.company;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class Main {
  6.  
  7.     public static void main(String[] args) {
  8.         Scanner keyboard = new Scanner(System.in);
  9.         int secret=9;
  10.         System.out.println("TEH WORST NUBMER GESSING GAME EVAR!!!!!!!1!");
  11.         System.out.println("\nIM THKING OF A NBR FROM 1-10.  TRY 2 GESS! ");
  12.         int guess=keyboard.nextInt();
  13.  
  14.         while (guess!=secret) {
  15.             System.out.println("W00T!  U SUX0R!!!  I PWN J00!!!  IT WAS " + secret + "!");
  16.             break;
  17.         }
  18.  
  19.         if (guess==secret){
  20.             System.out.println("LOL!!! U GOT IT!  I CANT BELEIVE U GESSED IT WAS " + secret + "!");
  21.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement