package main
import (
"fmt"
"strings"
)
func convertArrayOfIntegersToString(arr []int) string {
var sb strings.Builder
for _, value := range arr {
sb.WriteString(fmt.Sprintf("%d ", value))
}
return sb.String()
}
func main() {
arr := []int{5, 8, 12, 800, 3907}
s := convertArrayOfIntegersToString(arr)
fmt.Println(s)
}
/*
run:
5 8 12 800 3907
*/