import java.util.*;

public class GuessingGame {
	public static void main(String [] args) {
		Scanner scanner = new Scanner(System.in);

		final int theNumber = 4;

		System.out.println( "=== Pick a number game ===");

		System.out.print("Enter a number from 1 to 10: ");
		int theGuess = scanner.nextInt();

		while (theGuess != theNumber) {
			System.out.println( "Nyah yah nyah nyah nyah.... try again");

			System.out.print("Enter a number from 1 to 10: ");
			theGuess = scanner.nextInt();
		}

		System.out.println( "You got it right!");
	}
}



