if statement to loop user guessing

Created an if statement if to check if the user guess the correct
input, then told him if he was close to guess. display the amount of
guess correct and number of guesses.