Random Numbers

Task 1

Random number game: Create a random number, and ask the user for their guess. Keep asking them to guess until they get it correct.

Specifications

Your program should:

  1. Generate a random number between 1 and 15 (inclusive) that the user must guess
  2. Ask the user for their guess
  3. While it is not correct, tell them they are wrong and ask them again
  4. If they are correct, tell them that they are correct. Then exit properly (return 0;)

Get help here: C++ Help

Unless stated otherwise Content of this page is licensed under Creative Commons Attribution-NonCommercial 3.0 License