simple guessing game

i are required to write a code for simple guessing game. In this game my code will choose a random number, between 1 and 100 as secret number.
Then it will ask the user to guess that secret number.
User will enter a number as guess.
After every guess the program will tell the user whether entered number was too large or too small. Once i have guessed the number my code will display the congratulations message. And it will also display the number of tries it took user along with guessed number.
Last edited on
What have you written so far? What do you need help with?
i need code of this game
Topic archived. No new replies allowed.