Search⌘ K

Coding Exercise: Random Numbers

Build a console application that generates a random number between 1 and 10. Practice coding logic by implementing three guess attempts and displaying hints if guesses are too high, too low, or correct, helping you strengthen your programming skills.

Problem

This exercise uses a random number for a guessing game. Create a console application called Guessing Game that meets the four requirements below.

  1. Display the following: Guess the computer’s number between 1 and
...