C++
Write a program that has the user enter a number between asearchMin of 1 and searchMax of 100 inclusive. Write a functionthat tries to guess the number and returns the number of guessesthat it took to find the user’s number. Pass the number entered bythe user to the function. The function should make an initial guessof: guess = (searchMin + searchMax) / 2 ….(first guess will be 50)If the guess was greater than the number the next guess should befound by: Setting the searchMax to (guess – 1) then guess =(searchMin + searchMax) / 2 If the guess was LESS
PayPal Gateway not configured
PayPal Gateway not configured