C++ Question

This assignment will simulate a guessing game. Imagine two people are bored in the car driving on a road trip. Create a program that uses the following steps.

First person thinks of a number. Ask the user to input a number.

First person then asks the second person the guess the number - ask the user to guess the number.

If the number matches, print the output X is correct! and exit the program

If the number doesn't match, print Wrong on a line by istelf, then go back to step 2 and continue asking for the number until the correct answer is given.