Do while loop challenge other solution?

It Works but is diffrent then your solution is this also ok?

int main()
{
do{
PrintIntro();
PlayGame();
} while (AskToPlayAgain());
return 0;
}

1 Like

I had the same question about this one. I don’t see what is wrong with it and it looks a lot more clean in my opinion.

Same here it looks better and does the same job the only thing i keep thinking is if there is a reason why we shouldn’t do it this way.Capture

Privacy & Terms