Question: Usu golang programming! Write a program that asks the user to input several (3 or more) strings. When the user is done, it should output

Usu golang programming!

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!