Write a program that plays a computerized form of the "guess number" game. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Write a program that plays a computerized form of the "guess number" game.

It works like this:The player has ten tries to guess the magic number. If the number entered is the value you have selected for your right number,have the program print the message "RIGHT!" and then terminate. Otherwise, have the program report whether the guess was high/low and then let the player enter another number.This process goes on until the player guesses the number or the ten tries have been used up. For gun,you might want to report the number of tries to guess the number!

22nd Feb 2019, 5:36 PM
Rajesh Mitra
2 Answers
+ 4
https://code.sololearn.com/cZ1NrcML7tz1/?ref=app Bro i hope you thought about it before asking for solution. Hope this helps ^-^ PS : this doesn't work on SL.
23rd Feb 2019, 11:23 PM
Anon Fox
Anon Fox - avatar
+ 1
It is a problem of a book
25th Feb 2019, 3:26 PM
Rajesh Mitra