This activity was a little harder than the other ones because I had no idea how to begin, somehow I figured out more or less how. I had to gloogle how to do random numbers though, because I had no idea. Remember that when you want to have random numbers, you can use srand(time(NULL)); rsand helps generating the random number and the time one if for it not to give the same number every time. I used while too for the conditions.

CC BY 4.0 #WSQ06 – Pick a Number by Ricardo Newton is licensed under a Creative Commons Attribution 4.0 International License.