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.

27 lines
1.0 KiB

## reversestrcap
### Instructions
5 years ago
Écrire un programme avec une ou plusieurs `string` comme arguments et qui, **pour chaque argument**:
-place le dernier caractère de chaque mot (si c'est une lettre) en majuscule et le reste en minuscule.
5 years ago
-affiche ensuite le résultat suivi d'un retour à la ligne (`'\n'`).
Un mot est une suite de caractères alphanumériques.
5 years ago
Si il n'y a pas de paramètre, le programme affiche un retour à la ligne.
### Utilisation
```console
student@ubuntu:~/[[ROOT]]/reversestrcap$ go build
student@ubuntu:~/[[ROOT]]/reversestrcap$ ./reversestrcap "First SMALL TesT" | cat -e
firsT smalL tesT$
student@ubuntu:~/[[ROOT]]/reversestrcap$ ./reversestrcap go run reversestrcap.go "SEconD Test IS a LItTLE EasIEr" "bEwaRe IT'S NoT HARd WhEN " " Go a dernier 0123456789 for the road e" | cat -e
seconD tesT iS A littlE easieR$
bewarE it'S noT harD wheN $
gO A dernieR 0123456789 foR thE roaD E$
student@ubuntu:~/[[ROOT]]/reversestrcap$ ./reversestrcap | cat -e
$
student@ubuntu:~/[[ROOT]]/reversestrcap$
```