Pick a Number

This program picks a random integer in the range of 1 to 100.

There are different ways to make that happen, you choose which one works best for you.

It then prompts the user for a guess of the value, with hints of ’too high’ or ’too low’ from the program.

The program continues to run until the user guesses the integer. You could do something extra here including telling there user how many guesses they had to make to get the right answer.

Note:

For random integer you need use the libraries

NumRand librerias

You need use the second library because, if you don’t use the program pick the same number.

WSQ06-1WSQ06-2

CC BY-SA 4.0 Pick a Number by ferespib is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.