#include #include #include //for class string using namespace std; int main() { string a[] { "", //dummy element has subscript 0 "A partridge in a pear tree", //so that this element will be 1 "Two turtledoves", //and this one will be 2 "Three French hens", //etc. "Four colly birds", "Five Golden Rings" //and this one will be 5 }; int ndays {5}; for (int day {1}; day <= ndays; ++day) { cout << "On the " << day << " day of Christmas\n" << "My true love gave to me\n"; for (int gift {day}; gift >= 1; --gift) { cout << a[gift] << "\n"; } cout << "\n"; //Skip a line after each day. } return EXIT_SUCCESS; }