can u give me an example of a program like this?
write a program that allows the user to play the game called the secret number with the comp. the user will try to guess the secret number, a number known only by the comp. this secret number is an integer value and lies between 0 and 100. if the user input number is not the secret number, then the computer will return a refined range containing the secret number. given the refined range, the user will try to guess the number again. the secret number can be generated by using a random number generator. u may use the function rand()%101 to generate a random number between 0 and 100. the seed for this number generator is given as srand(((unsigned)time(NULL)).