I simply call the AskToPlayAgain(); method for the condition for the do{} while(), and it works perfectly fine. In this way, I don’t need another declaration or variable.
int main()
{
do
{
PrintIntro();
PlayGame();
}
while (AskToPlayAgain());
return 0; //exit the application
}