This is a simple number guessing game implemented in C++. The program generates a random number between 1 and 100, and the user has to guess the number. After each guess, the program provides feedback (higher or lower) to help the user narrow down the correct number. Once the user guesses the correct number, the program displays the number of attempts it took to guess the number correctly.
- Clone the repository or download the
project.cpp
file. - Compile the C++ code using a C++ compiler of your choice.
- Run the compiled executable in your terminal or command prompt.
- The program will ask you to guess a number between 1 and 100.
- Enter your guess and press Enter.
- The program will provide feedback on whether the correct number is higher or lower than your guess.
- Continue guessing until you find the correct number.
- Once you guess the correct number, the program will display the number of attempts it took.
Guess the number between 1 to 100
50
Higher Number please!
75
Lower Number please!
63
You guessed it in 3 attempts
Contributions are welcome! If you find any issues or have ideas to improve the game, feel free to open an issue or create a pull request.
For any questions or inquiries, please contact me through my Email: aagamaj1212@gmail.com (Aagam Jain)