Question: Ex. 40 A limerick is a five-line poem with AABBA rhyme scheme, such as; My days are really bright. I program C++ at night. I
Ex. 40 A limerick is a five-line poem with AABBA rhyme scheme, such as;
My days are really bright.
I program C++ at night.
I found a new trick,
and got my solution real quick.
I certainly have an A+ in sight!
Write a C++ program which takes a limerick as input (5 lines of input) and stores it in an array of strings, one line per index. Use getline. Your program should print the lines of the limerick backwards, indenting the 3rd and 4th lines (original ordering) with tabs.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
