-
Notifications
You must be signed in to change notification settings - Fork 0
The approach is to generate a random number using Math. random() method in Java. Now using a loop, take K input from the user and for each input print whether the number is smaller or larger than the actual number. If within K trials the user guessed the number correctly, print that the user won and calculate the score also.
Angadkumar07/Guesser-Game-Java-Project
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
About
The approach is to generate a random number using Math. random() method in Java. Now using a loop, take K input from the user and for each input print whether the number is smaller or larger than the actual number. If within K trials the user guessed the number correctly, print that the user won and calculate the score also.
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published