Question: Strings name 1 , name 2 , and name 3 are read from input. Each string represents a list of name ( s ) surrounded
Strings name name and name are read from input. Each string represents a list of names surrounded by and
Assign combinedNames with the concatenation of name name and name in the order read.
Assign groupOfAll with a string that contains all the names in name name and name in the order read, separated by and surrounded by and
Ex: If the input is:
then the output is:
All groups in one line:
One group of all names:
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
