Question: Use GOLANG (No Python) Write a program that asks the user to input several (3 or more) strings. When the user is done, it should
Use GOLANG
(No Python)
Write a program that asks the user to input several (3 or more) strings. When the user is done, it should output the strings the user entered, separated by commas. The finished program will rely on the strings.Join function to join the strings together.
Example output:
String to add: cashews
Continue? [Y/n]: y
String to add: peanuts
Continue? [Y/n]: y
String to add: almonds
Continue? [Y/n]: n
cashews, peanuts, almonds
Do Not Copy this output.
Your output will be different as you will enter different strings.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
