Write Guess Number Game Allow User Guess Value Random Number Number Guesses User Allowed A Q37110981

Write a guess- the number game, which allow the user to guessthe value of a random number. The number of guesses a user isallowed should also be entered by the user and stored in avariable.

if the user guesses the correct number, the program outputs themessage ” you win!”

if the user’s guess is within 10% of the correct number, but istoo large, output the message “Getting closer, but too big!’

if the user’s guess is within 10 % of the correct number, but istoo small, output the message “Getting closer, but too small “

if the user’s guess is more thant 10% away

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.