I know it’s an odd question at this stage, but put yourself out there and give it a go. Here’s the code…
{
std::system("clear"); // clears the terminal
int difficulty = 2;
int maxDifficulty = 10;
while (difficulty <= maxDifficulty)
{
PlayGameAtDifficulty(difficulty);
std::cin.clear(); // clears the failbit
std::cin.ignore(); // discards the buffer
++difficulty;
}
std::cout << "WOW - You're a master hacker!\n";
return 0; // exit with no error code
}
By the way you block format code with three ` at the start and end