Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void RunGame(){
- Scanner scan = new Scanner(System.in);
- int secret_num = (int)(Math.random()*100) + 1;
- System.out.println("Enter your guess, asshole");
- int user_num = scan.nextInt();
- while(secret_num != user_num){
- if(secret_num > user_num)
- System.out.println("No, the secret number is bigger, try again motherfucker");
- else
- System.out.println("No, the secret number is smaller, try again motherfucker");
- user_num = scan.nextInt();
- }
- System.out.println("Congratulations you have won one autism");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement