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