Skip to content

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.

Notifications You must be signed in to change notification settings

Angadkumar07/Guesser-Game-Java-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

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

No packages published

Languages