Question: A name is read from input into name _ input. String my _ friends is output, followed by name _ input. Modify my _ friends
A name is read from input into nameinput. String myfriends is output, followed by nameinput. Modify myfriends so that each name in myfriends is separated by a newline and myfriends ends with a newline.
Ex: If the input is Ali, then the output is:
Sam
Van
Jay
Seb
Ali
nameinput input
myfriends Sam Van Jay Seb'
printmyfriends, end
printnameinput
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
