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.

48 lines
734 B

5 years ago
## rot14
### Instructions
Écrire une fonction `rot14` qui retourne la `string` en paramètre transformée en `string rot14`.
- Il faut savoir ce que `rot13` signifie.
### Fonction attendue
```go
func Rot14(str string) string {
}
```
### Utilisation
Voici un éventuel [programme](TODO-LINK) pour tester votre fonction :
```go
package main
import (
piscine ".."
"github.com/01-edu/z01"
)
func main() {
result := piscine.Rot14("Hello How are You")
arrayRune := []rune(result)
for _, s := range arrayRune {
z01.PrintRune(s)
}
z01.PrintRune('\n')
}
```
Et son résultat :
```console
student@ubuntu:~/piscine/test$ go build
student@ubuntu:~/piscine/test$ ./test
Vszzc Vck ofs Mci
student@ubuntu:~/piscine/test$
```