Question: c + + Read the string variables listName, listItem 1 , listItem 2 , and listItem 3 from input, assuming that the list name contains
c Read the string variables listName, listItem listItem and listItem from input, assuming that the list name contains multiple words and each list item is a single word. The first input line contains the list name and the second input line contains the list items.
Ex: If the input is:
Shopping list
peas mushroom artichoke
then the output is:
Shopping list:
peas
mushroom
artichoke
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
