#include #include #include //for class string using namespace std; int main() { srand(time(nullptr)); //Seed the random number generator const int r {rand() % 10}; //random number in the range 0 to 9 inclusive cout << "You have " << r << " point"; if (r != 1) { cout << "s"; //Make it plural. } cout << ".\n"; cout << "You have " << r << " point" << (r == 1 ? "" : "s") << ".\n"; cout << "You have " << r << " " << (r == 1 ? "point" : "points") << ".\n"; return EXIT_SUCCESS; }