C++ age guessing game, C/C++ Programming

Write a program that predicts users’ age (0-128 years old) with at most 7 questions. The game starts with asking the user whether he/she is younger or older than G (an initial guess). The user responds with ''''O’ for older'''', ‘Y for ''''younger'''' and ‘X’ for ‘you got it!’