Write a program that concatenates algorithms into one string, separated by ";".
Operations with strings
FAANG wait
Report a typo
Write a program in Go
package main
import (
"fmt"
"strings"
)
func main() {
algorithms := parseAlgorithms()
fmt.Println(?) // TODO: format algorithms
}
// DO NOT CHANGE
func parseAlgorithms() []string {
var algorithms []string
for {
var algo string
if _, err := fmt.Scan(&algo); err != nil {
break
}
algorithms = append(algorithms, algo)
}
return algorithms
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.