
First with ‘a’
Write a function FirstWithA(words []int) string
that, given a slice of strings, returns the first string that begins with a.
To test the function you can use the main
below:
func main() {
const N = 10
:= make([]string, N)
words
for i := 0; i < N; i++ {
.Scan(&words[i])
fmt}
.Println(firstWithA(words))
fmt}