You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

777 B

printwordstables

Instructions

Écrire une fonction qui affiche les mots d'un tableau de string qui sera le resultat d'une fonction SplitWhiteSpaces. (les tests seront effectués avec la notre)

Chaque mot est sur une seule ligne.

Chaque mot fini avec un \n.

Fonction attendue

func PrintWordsTables(table []string) {
}

Utilisation

Voici un éventuel programme pour tester votre fonction :

package main

import 	piscine ".."

func main() {

	str := "Hello how are you?"
	table := piscine.SplitWhiteSpaces(str)
	piscine.PrintWordsTables(table)
}

Et son résultat :

student@ubuntu:~/piscine/test$ go build main.go
student@ubuntu:~/piscine/test$ ./main
Hello
how
are
you?
student@ubuntu:~/piscine/test$