#include #include #include using namespace std; int main() { string numbers[] = { "", "ONE", "TWO", "THREE", "FOUR", "FIVE" }; int totalVerses = size(numbers) - 1; for (int i = 1; i <= totalVerses; ++i) { // First line of the verse cout << numbers[i] << (i > 1 ? " men" : " man") << " went to mow, went to mow a meadow,\n"; // Second line of the verse cout << numbers[i] << (i > 1 ? " men" : " man"); for (int j = i - 1; j >= 1; --j) { cout << ", " << numbers[j] << (j > 1 ? " men" : " man"); } cout << ", and his dog - Woof! - went to mow a meadow.\n\n"; } return EXIT_SUCCESS; }