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.

46 lines
777 B

5 years ago
## printwordstables
5 years ago
### 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`.
5 years ago
### Fonction attendue
```go
func PrintWordsTables(table []string) {
}
```
5 years ago
### Utilisation
Voici un éventuel [programme](TODO-LINK) pour tester votre fonction :
```go
package main
import piscine ".."
func main() {
str := "Hello how are you?"
table := piscine.SplitWhiteSpaces(str)
piscine.PrintWordsTables(table)
}
```
Et son résultat :
```console
student@ubuntu:~/piscine/test$ go build main.go
student@ubuntu:~/piscine/test$ ./main
Hello
how
are
you?
student@ubuntu:~/piscine/test$
```