Here is my screenshot for how I got the desired result.
Works as intended!
this was what i managed to do, using cin to take a guess on the same line
its getting internesting this thing haha
your cout << “Enter your guess:” was the better option! ill change mine to match, thanks! 