Your task is to write a program that plays a guessing game with the user.
The number that the user has to guess is automatically generated by the program using the rand function. Use man rand on the command line for more information on this function.
The program tells the user the range for the number (example: 0 to 10, 0 to 100). It then uses a while loop to ask the user for a guess. If the guess is either too low or to high, the program informs the user, and goes back to give him/her another chance to guess, continuing until the guess is correct. If the guess is correct, the program finishes by telling the user how many guesses it took him/her to get the number right.
Your program should show the user enough printed messages so that s/he
always knows what data is being requested/presented.