Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- Scanner keyboard = new Scanner(System.in);
- int secret=9;
- System.out.println("TEH WORST NUBMER GESSING GAME EVAR!!!!!!!1!");
- System.out.println("\nIM THKING OF A NBR FROM 1-10. TRY 2 GESS! ");
- int guess=keyboard.nextInt();
- while (guess!=secret) {
- System.out.println("W00T! U SUX0R!!! I PWN J00!!! IT WAS " + secret + "!");
- break;
- }
- if (guess==secret){
- System.out.println("LOL!!! U GOT IT! I CANT BELEIVE U GESSED IT WAS " + secret + "!");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement