Pick a number…
In this wsq we made a program that generates a random number between 1 to 100 and the user has to try to guess it.
I did not had problems with the code. Only I had to investigate in the web some libraries looking for one with a random function. I found it “<stdlib>” and the functions that we need are rand(), srand(). Here I saw how use the rand fuction.
Here my code uploaded to github.
And here a screenshot with the program running… 😀
Enjoy it!!!
#WSQ06 by Manuel Godínez Márquez is licensed under a Creative Commons Attribution 4.0 International License.