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.

28 lines
994 B

## reversestrcap
### Instructions
5 years ago
Write a program that takes one or more `string` as arguments and that, **for each argument**:
-puts the last character of each word (if it is a letter) in uppercase and the rest
in lowercase
5 years ago
-then it displays the result followed by a newline (`'\n'`).
A word is a sequence of alphanumerical characters.
If there are no parameter, the program displays a newline.
### Usage
```console
5 years ago
student@ubuntu:~/piscine-go/reversestrcap$ go build
student@ubuntu:~/piscine-go/reversestrcap$ ./reversestrcap "First SMALL TesT" | cat -e
firsT smalL tesT$
5 years ago
student@ubuntu:~/piscine-go/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$
5 years ago
student@ubuntu:~/piscine-go/reversestrcap$ ./reversestrcap | cat -e
$
5 years ago
student@ubuntu:~/piscine-go/reversestrcap$
```