It is a simple java code which is used to guess the number within limited trials.
1. Download the given code.
2. Run the NumberGuessingGame.java file.
3. Now take a random guess between 0 to 100.
4. If your guess is correct "Congratulations! You guessed the number." will be printed.
5. else if your guess is less than or greater than the number appropriate message will be printed.