#include #include using namespace std; int main() { string animals[] { "", "a fly", "a spider", "a bird", "a cat", "a dog", "a goat", "a cow", "a horse", }; int verse {8}; for (int i {1}; i <= verse; ++i) { cout << "There was an old lady who swallowed " << animals[1] << ".\n"; for (int j {1}; j < i; ++j) { cout << "That wriggled and wiggled and tickled inside her.\n"; cout << "She swallowed a " << animals[j] << " to catch the " << animals[j-1] << ".\n"; } cout << "That wriggled and wiggled and tickled inside her.\n"; cout << "I don't know why she swallowed a fly-perhaps she'll die.\n"; if (i < verse) { cout << "\nNext verse...\n\n"; } } return EXIT_SUCCESS; }