The user's task is to guess a number between 1 and 10, and the machine tells after each guess whether the guessed number is lower or higher than the guess. There are 3 guessing times, after which the user loses the game. However, you can start the game from the beginning and play as many times as you want. The program keeps track of profits and losses.