In this WSQ we were asked to make a program that automatically could choose a number between 1 and 100, and the user would try to guess it. The program will show a message saying if the number is higher or lower than the chosen by the user, then the user will try with another number until he choose the correct one.

You can make this program using -while- or -for-, if you want it to be easy. I found -for- a nice way to make it.

To generate a random number and understand how that functions work, this video helped me a lot: https://www.youtube.com/watch?v=XfHI4ePUHc4

Also page 103 and 104 of the book.

WSQ06

Here is the link to GitHub: https://github.com/tonygarciavz/A01630861-TC1017.git

CC BY 4.0 #WSQ06 by tonygarciavz is licensed under a Creative Commons Attribution 4.0 International License.